isnan input arguments of type 'cell'
31 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I am getting a cell error
a={'2' [NaN] '4' '5'}
isnan(a)
Undefined function 'isnan' for input arguments of type 'cell'.
How can I get around this error
0 commentaires
Réponse acceptée
the cyclist
le 28 Juin 2012
cellfun(@isnan,a)
2 commentaires
Kavya Ashok
le 14 Sep 2016
This returns the index of a where nan exists. What if you want Nan to be removed from the original array?
Plus de réponses (1)
Debejyo Chakraborty
le 20 Juil 2016
Sometimes this may be necessary: b = cellfun(@isnan,a,'UniformOutput',false);
0 commentaires
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!