Inf
Create array of all Inf
values
Description
returns the scalar
representation of positive infinity. Operations return X
= InfInf
when their result is too large to represent as a floating point number, such as
1/0
or log(0)
.
For double-precision, Inf
represents numbers larger than
realmax
. For single-precision, Inf
represents numbers larger than realmax("single")
.
returns an X
= Inf(sz1,...,szN
)sz1
-by-...-by-szN
array of
Inf
values, where sz1,...,szN
indicate
the size of each dimension. For example, Inf(3,4)
returns a
3-by-4 matrix.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced before R2006a