Quartile & Percentile Calculation

Demonstrates a method for computing percentiles and other basic statistics.
16.7K Downloads
Updated 17 Sep 2004

No License

Included in the first line of the script is a sample data set. The script will compute basic statistics on this data set:

mean
1-sigma (standard deviation)
median
first quartile (25th percentile)
second quartile (50th percentile)
third quartile (75th percentile)
kth percentile
IQR
SID

Cite As

Chris D. Larson (2026). Quartile & Percentile Calculation (https://www.mathworks.com/matlabcentral/fileexchange/5877-quartile-percentile-calculation), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0