How to erase rows with blank entries with one exception?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Maria
am 27 Jul. 2014
Bearbeitet: Azzi Abdelmalek
am 27 Jul. 2014
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 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 27 Jul. 2014
Bearbeitet: Azzi Abdelmalek
am 27 Jul. 2014
A=[A(1,:) ; A(all(cellfun(@numel,A),2),:)]
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!