How can I detect NaN values in a matrix or vector?
Afficher commentaires plus anciens
How do I identify NaN values?
1 commentaire
Fawad Chandio
le 15 Août 2019
Hello I doing facial recognition attendance system for my final year project I already completed some task but now the problem is that how to recognitions faces...? Help me sir
Réponse acceptée
Plus de réponses (1)
Bozydar Wrona
le 22 Juin 2017
Modifié(e) : Bozydar Wrona
le 22 Juin 2017
1 vote
%num is a vector/matrix, if searching for elements different than NaN then:
num(isnan(num)==0)
%otherwise:
num(isnan(num)==1)
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!