How can I detect NaN values in a matrix or vector?
3 次查看(过去 30 天)
显示 更早的评论
How do I identify NaN values?
1 个评论
Fawad Chandio
2019-8-15
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
采纳的回答
更多回答(1 个)
Bozydar Wrona
2017-6-22
编辑:Bozydar Wrona
2017-6-22
%num is a vector/matrix, if searching for elements different than NaN then:
num(isnan(num)==0)
%otherwise:
num(isnan(num)==1)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Operators and Elementary Operations 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!