isfinite
Array elements that are finite
Syntax
TF = isfinite(A)
Description
TF = isfinite(A)
returns an array the same size asA
containing logical 1 (true
) where the elements of the arrayA
are finite and logical 0 (false
) where they are infinite orNaN
. For a complex numberz
,isfinite (z)
returns1
if both the real and imaginary parts ofz
are finite, and0
if either the real or the imaginary part is infinite orNaN
.
For any realA
, exactly one of the three quantitiesisfinite(A)
,isinf(A)
, andisnan(A)
is equal to one.
Examples
Extended Capabilities
Introduced before R2006a
Was this topic helpful?