How can I query the content of a cell?

1 vue (au cours des 30 derniers jours)
Philipp Mueller
Philipp Mueller le 25 Mai 2020
Réponse apportée : Rik le 25 Mai 2020
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.

Réponses (1)

Rik
Rik le 25 Mai 2020
The same way you get the contents of any cell array: use curly braces.
YourCell{n}==0
isnan(YourCell{n})
isempty(YourCell{n})

Catégories

En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by