Description

Inf returns the IEEE® arithmetic
representation for positive infinity. Infinity values result from
operations like division by zero and overflow, which lead to results
too large to represent as conventional floating-point values.

I = Inf(n) is an n-by-n matrix
of Inf values.

I = Inf(sz1,...,szN) is a sz1-by-...-by-szN array
of Inf values where sz1,...,szN indicates
the size of each dimension. For example, Inf(3,4) returns
a 3-by-4 array of Inf values.

I = Inf(sz) is an array of Inf values
where the size vector, sz, defines size(I).
For example, Inf([3,4]) returns a 3-by-4 array
of Inf values.

Note

The size inputs sz1,...,szN, as well as the
elements of the size vector sz, should be nonnegative
integers. Negative integers are treated as 0.

I = Inf(classname) returns
an Inf value where the string, classname,
specifies the data type. classname can be either 'single' or 'double'.