File Exchange

image thumbnail

Quantiles

version 1.0.6 (1.42 KB) by David Ferreira
Calculate the quantiles of a vector or matrix data using linear interpolation.

11 Downloads

Updated 28 Oct 2020

View Version History

View License

Example using matrix
X = [1 2; 2 5; 3 6; 4 10; 7 11; 10 13];
p = [0.25 0.50 0.75];
Q = quantile(X,p)

Q =

2.2500 5.2500
3.5000 8.0000
6.2500 10.7500

See more examples described in the script files.

Cite As

David Ferreira (2021). Quantiles (https://www.mathworks.com/matlabcentral/fileexchange/70279-quantiles), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Chang hsiung

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!