Main Content
isfinite
Determine which array elements are finite
Syntax
Description
TF = isfinite(
returns a logical array
containing A
)1
(true
) where the elements of the array
A
are finite, and 0
(false
) where
they are infinite or NaN
. If A
contains complex
numbers, isfinite(A)
contains 1
for elements with
finite real and imaginary parts, and 0
for elements where either part is
infinite or NaN
.
Examples
Input Arguments
Tips
If x
is a real scalar, exactly one of isfinite(x)
,
isinf(x)
, and isnan(x)
returns logical
1
(true
).
Extended Capabilities
Version History
Introduced before R2006a