MATLAB Function Reference    
isnan

Detect NaN elements of an array

Syntax

Description

TF = isnan(A) returns an array the same size as A containing logical true (1) where the elements of A are NaNs and logical false (0) where they are not.

For any A, exactly one of the three quantities isfinite(A), isinf(A), and isnan(A) is equal to one.

Examples

See Also

isfinite, isinf, is*


  ismethod (COM) isnumeric