How to check if cell has particular value or not?
20 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
raghavendra kandukuri
am 22 Mai 2019
Bearbeitet: madhan ravi
am 22 Mai 2019
Hi,
I have variable named 'result1' which is basically 1*2 cell and i want to write condition saying.
Thanks in Advance
if result1="NaN" % either in index1 or index2
% do this cal
else
% do this cal
end
0 Kommentare
Akzeptierte Antwort
madhan ravi
am 22 Mai 2019
contains() - if it contains "NaN" a string
isnan() - if it contains NaN value
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Numeric Types finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!