isfiniteΒΆ
isfinite determines whether the given number is finite.
-
r = isfinite(m)
Return Value
r is TRUE (1), if m is finit, i.e. if m != INF and m != -INF and m is not a NaN.
Parameters
-
m
is a real scalar or real matrix.
Example
1/0
1.#INF
0/0
-1.#IND
isfinite(1/0)
0.0000
isfinite(0/0)
0.0000
isnan(1/0)
0.0000
isnan(0/0)
1.0000
isnan(0/0)
1.0000
isnan(1e300*1e300)
1.0000
isnan(-1e300*-1e300)
1.0000
History
Version | Description |
---|---|
5.9.3 | New. |
See also
id-1417454