How can I query the content of a cell?
2 ビュー (過去 30 日間)
古いコメントを表示
How can I query the content ( in a loop) of a cell (40*1 double)? I want to ask if the content is 0 or is empty or NaN or []? I want to query these three things "options/cases" separately. Thank you for your help of this big problem for me. Wishing you a nice day.
0 件のコメント
回答 (1 件)
Rik
2020 年 5 月 25 日
The same way you get the contents of any cell array: use curly braces.
YourCell{n}==0
isnan(YourCell{n})
isempty(YourCell{n})
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Loops and Conditional Statements についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!