isnan cellfun and dropping rows
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi, in my cell array X, I would like to drop all rows where the value of the 4th column is NaN (the new cell array is Y).
I am trying this:
Y = X(~any(cellfun(@isnan,X(:,4),'UniformOutput',false),2),:)
It returns the following error: Undefined function 'any' for input arguments of type 'cell'.
How do I have to change the code?
1 Commento
Stephen23
il 13 Set 2016
Not enough information: what is the cell array? What size are the arrays inside the cell array? Are all cell contents numeric?
Risposta accettata
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Cell Arrays in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!