How to check if cell has particular value or not?
15 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
raghavendra kandukuri
il 22 Mag 2019
Modificato: madhan ravi
il 22 Mag 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 Commenti
Risposta accettata
madhan ravi
il 22 Mag 2019
contains() - if it contains "NaN" a string
isnan() - if it contains NaN value
2 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Numeric Types in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!