Boolean to return true if the cell is empty/nan

조회 수: 12 (최근 30일)
Juniper Sohn
Juniper Sohn 2019년 7월 15일
답변: Star Strider 2019년 7월 16일
Hi, I am trying to write a boolean variable that tells me whether the cell is not nan or nan, but I got an error that says "undefined function 'isnan' for input arguments of type 'cell'".
while (not(isnan(AU(row+1, col)))) % While the next row is available, skip this row.
row = row + 1;
end
The value in the bracket is true if the next row (row+1) is not nan.
Please help me fix this.
thank you !

답변 (1개)

Star Strider
Star Strider 2019년 7월 16일
It would be easier if we had your code to work with.
Try this:
~isnan(AU{row+1, col})
Address the cell elements using {}.

카테고리

Help CenterFile Exchange에서 Numeric Types에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by