MATLAB Function Reference Previous page   Next Page
isinf

Detect infinite elements of array

Syntax

Description

TF = isinf(A) returns an array the same size as A containing logical true (1) where the elements of A are +Inf or -Inf and logical false (0) where they are not. For a complex number z, isinf(z) returns 1 if either the real or imaginary part of z is infinite, and 0 if both the real and imaginary parts are finite 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

isfinite, isnan, is*


Previous page  ishold isinteger Next page

© 1994-2005 The MathWorks, Inc.