delete empty cells from cell array

3 ビュー (過去 30 日間)
Elysi Cochin
Elysi Cochin 2019 年 5 月 6 日
回答済み: madhan ravi 2019 年 5 月 6 日
Untitled.png
how to delete the empty cells and get back 4x4 matrix
i tried
out = ca(~cellfun('isempty', ca));
but i'm getting output as vector. I need it as matrix format

採用された回答

madhan ravi
madhan ravi 2019 年 5 月 6 日
reshape(out,4,[])

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Types についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by