FUNCTION REFERENCE
iqr
Interquartile range.
Interquartile range.
Syntax
r = iqr(X)Syntax
r = iqr(X, dim)The difference of the 75th and 25th percentiles (midpoint rule, as prctile). NaN values are ignored; iqr([]) is NaN.
Example
iqr([1 2 3 4 5 6 7 8]) % 4Differences from MATLAB: Two-dimensional arrays only (no N-D arrays).
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.