isnan

Purpose

Detect NaNs.

Synopsis

k = isnan(X)

Description

isnan(X) returns 1 where the elements of X are NaNs and 0 where they are not.

See Also

finite, isinf

(c) Copyright 1994 by The MathWorks, Inc.