How to erase rows with blank entries with one exception?

2 vues (au cours des 30 derniers jours)
Maria
Maria le 27 Juil 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

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 27 Juil 2014
Modifié(e) : Azzi Abdelmalek le 27 Juil 2014
A=[A(1,:) ; A(all(cellfun(@numel,A),2),:)]

Plus de réponses (0)

Catégories

En savoir plus sur Cell Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by