range
Range of values.
📝Syntax
Y = range(X)
Y = range(X, dim)
📥Input Arguments
Parameter Description
X numeric or logical array.
dim dimension along which to operate.
📤Output Arguments
Parameter Description
Y difference between the maximum and minimum values.
📄Description

range returns the difference between the maximum and minimum values, max(X) - min(X). For a matrix, range operates on each column; range(X, dim) operates along dimension dim. NaN values are ignored.

💡Examples
range([3 1 8 4])
🔗See Also
iqrstd
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub