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!