Boolean to return true if the cell is empty/nan

12 visualizaciones (últimos 30 días)
Juniper Sohn
Juniper Sohn el 15 de Jul. de 2019
Respondida: Star Strider el 16 de Jul. de 2019
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 !

Respuestas (1)

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

Categorías

Más información sobre Numeric Types en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by