How can I detect NaN values in a matrix or vector?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Doug Hull
il 18 Gen 2011
Commentato: Fawad Chandio
il 15 Ago 2019
How do I identify NaN values?
1 Commento
Fawad Chandio
il 15 Ago 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
Risposta accettata
Più risposte (1)
Bozydar Wrona
il 22 Giu 2017
Modificato: Bozydar Wrona
il 22 Giu 2017
%num is a vector/matrix, if searching for elements different than NaN then:
num(isnan(num)==0)
%otherwise:
num(isnan(num)==1)
0 Commenti
Vedere anche
Categorie
Scopri di più su Operators and Elementary Operations in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!