MATLAB Function Reference Previous page   Next Page
isfinite

Detect finite elements of array

Syntax

Description

TF = isfinite(A) returns an array the same size as A containing logical true (1) where the elements of the array A are finite and logical false (0) where they are infinite or NaN. For a complex number z, isfinite(z) returns 1 if both the real and imaginary parts of z are finite, and 0 if either the real or the imaginary part is infinite or NaN.

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

Examples

See Also

isinf, isnan, is*


Previous page  isfield isfloat Next page

© 1994-2005 The MathWorks, Inc.