Skip to content

isnan

Element-wise NaN test.

TF = isnan(A)

Returns a logical array marking which elements of A are NaN.

isnan([1 NaN 3]) % [0 1 0]
  • isfinite — Element-wise finite test.
  • isinf — Element-wise infinity test.