FUNCTION REFERENCE
range
Range of values (maximum minus minimum).
Range of values (maximum minus minimum).
Syntax
r = range(X)Syntax
r = range(X, dim)Returns max(X) - min(X) along the first non-singleton dimension, or along
dim. NaN values are ignored, as in max and min.
Example
range([4 1 9]) % 8Differences from MATLAB: dim 3 or higher and complex input are not
supported yet.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.