quartile

Calculate the 3 quartiles of the data x.

Contents

Syntax

q = quartile(x)

Description

If x is a matrix, it is treated columnwise.
nan values in x are ignored.
The difference between q(3) and q(1) is the interquartile distance.
0.74*interquartileDistance is an estimate of standard deviation.

Example

quartile([0 10 20 30 40])
ans =
10    20    30

See Also

quantile