How to erase rows with blank entries with one exception?
1 回表示 (過去 30 日間)
古いコメントを表示
I have this code that erases all the rows if there is a blank entry [ ] in any of the columns/rows of the cell array:
A=A(all(cellfun(@numel,A),2),:);
Now I have a cell array to which I want to apply this code, but I don't want to erase the first row, and unfortunately in the first row one finds blank entries. Does someone know how to do it?
Thanks
0 件のコメント
採用された回答
Azzi Abdelmalek
2014 年 7 月 27 日
編集済み: Azzi Abdelmalek
2014 年 7 月 27 日
A=[A(1,:) ; A(all(cellfun(@numel,A),2),:)]
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Matrices and Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!