필터 지우기
필터 지우기

How can I query the content of a cell?

조회 수: 1 (최근 30일)
Philipp Mueller
Philipp Mueller 2020년 5월 25일
답변: Rik 2020년 5월 25일
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.

답변 (1개)

Rik
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})

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by