Calculate quantiles of the data x
[y, pActual] = quantile(x,p)
x is a vector or matrix.
If x is a matrix, it is treated columnwise.
nan values in x are ignored.
p contains fractions 0<=p<=1 and can be a scalar or vector.
Published with MATLAB® R2015a