Documentation |
Quantiles of a data set
Y = quantile(X,p) returns quantiles of the values in data vector or matrix X for the cumulative probability or probabilities p in the interval [0,1].
If X is a vector, then Y is a scalar or a vector having the same length as p.
If X is a matrix, then Y is a row vector or a matrix where the number of rows of Y is equal to the length of p.
For multidimensional arrays, quantile operates along the first nonsingleton dimension of X.
Y = quantile(X,N) returns quantiles for N evenly spaced cumulative probabilities (1/(N + 1), 2/(N + 1), ..., N/(N + 1)) for integer N>1.
If X is a vector, then Y is a scalar or a vector with length N.
If X is a matrix, then Y is a matrix where the number of rows of Y is equal to N.
For multidimensional arrays, quantile operates along the first nonsingleton dimension of X.