## Documentation Center |

Quantiles of a data set

` Y = quantile(X,p)` returns
quantiles of the values in data vector or matrix

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

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`.

Was this topic helpful?