how to i delete the rows in a cell
1 回表示 (過去 30 日間)
古いコメントを表示
I have a really large 7231x11 cell with some empty rows. Is it possible for me to delete those empty rows.
0 件のコメント
回答 (1 件)
Stephen23
2015 年 11 月 7 日
>> C = {[1,2];[];[3,4]}
C =
[1x2 double]
[]
[1x2 double]
>> C(cellfun('isempty',C),:) = []
C =
[1x2 double]
[1x2 double]
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!