How to know if a matrix has nan?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
JFz
am 5 Dez. 2016
Kommentiert: Star Strider
am 5 Dez. 2016
Hi,
I have a huge matrix or table with doubles. But there might be nan in it. How do I know if there are any nan in it? I know I can use ismissing TF = ismissing(A); But TF is a huge matrix with many 0's in it. I am not sure if there are any 1's.
Thanks!
0 Kommentare
Akzeptierte Antwort
Star Strider
am 5 Dez. 2016
To find the number of NaN values, I would do this:
NrNaN = sum(isnan(A(:)));
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!