Skip to content

isnan

Determining if an array has entries equal to NaN

isnan(A)

  • It returns an array whose element is equal to logical 1 if the corresponding element in A is NaN, and logical 0 if otherwise.
  • The output has the same size as A.
  • It returns an empty array if A is empty.