quantile

quantile(X,p) returns the p quantile of the vector or matrix X, where p ∈ [0,1].

Examples

>> quantile([15, 20, 35, 40, 50], 0.3)# 

% calculate quantile for the cumulative probability 0.3

20

See also

median | prctile