How can I detect NaN values in a matrix or vector?
41 views (last 30 days)
Show older comments
How do I identify NaN values?
1 Comment
Fawad Chandio
on 15 Aug 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
Accepted Answer
More Answers (1)
Bozydar Wrona
on 22 Jun 2017
Edited: Bozydar Wrona
on 22 Jun 2017
%num is a vector/matrix, if searching for elements different than NaN then:
num(isnan(num)==0)
%otherwise:
num(isnan(num)==1)
0 Comments
See Also
Categories
Find more on Logical in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!