Inf
Infinity
📝Syntax
Inf
inf
Inf(n)
Inf(n, m)
Inf(n, classname)
Inf(n, m, classname)
Inf(classname)
📥Input Arguments
Parameter Description
n a scalar integer: number of rows (and columns if m is omitted).
m a scalar integer: number of columns.
classname a string: 'double' (default) or 'single'.
📄Description

Inf returns the IEEE symbol Inf (Infinity).

Inf(n) returns an n-by-n matrix filled with Inf.

Inf(n, m) returns an n-by-m matrix filled with Inf.

The optional classname argument selects the class of the result and must be either 'double' (default) or 'single'.

💡Examples
Inf
-Inf + Inf
1.e1000
🔗See Also
nan
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub