Quantiles

版本 1.0.6 (1.4 KB) 作者: David Ferreira
Calculate the quantiles of a vector or matrix data using linear interpolation.
333.0 次下载
更新时间 2020/10/28

查看许可证

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.

引用格式

David Ferreira (2024). Quantiles (https://www.mathworks.com/matlabcentral/fileexchange/70279-quantiles), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2016a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Interpolation 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.6

Code simplification.

1.0.5

Added 0.0 to 1.0 percentage support.

1.0.4

Description correction

1.0.3

Matrix support added

1.0.2

Scalar support added

1.0.1

Calculation of the median added

1.0.0