How to check if cell has particular value or not?
20 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
madhan ravi
2019 年 5 月 22 日
contains() - if it contains "NaN" a string
isnan() - if it contains NaN value
2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Numeric Types についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!