Inf
Create array of allInf
values
Syntax
Description
X = Inf
returns the scalar representation of positive infinity. Operations returnInf
when their result is too large to represent as a floating point number, such as1/0
orlog(0)
.
For double-precision,Inf
represents numbers larger thanrealmax
. For single-precision,Inf
represents numbers larger thanrealmax('single')
.
X = Inf(
returns ansz1,...,szN
)sz1
-by-...-by-szN
array ofInf
values, wheresz1,...,szN
indicate the size of each dimension. For example,Inf(3,4)
returns a 3-by-4 matrix.