[ VALUE_AT_PERCENTILE, SORTED_DATA ] = minFractof( DATA, PERCENTILE, ORDER)
MINFRACTOF Extract data value at the Nth percentile of the data sample.
V = MINFRACTOF(D) extract 75%tile of D.
V = MINFRACTOF(D,P) extract P%tile of D.
V = MINFRACTOF(D,P,O) extract ascending of descending P%tile of D. See
SORT options ASCEND and DESCEND.
When D in a matrix, one value is extracted for each column. NaN are not
considered in percentage calculations.
Example
N=[NaN 1];
minFractof( N(fix(rand(100,10)+0.5)+1).*rand(100,10) )
See also SORT, SUM and ISNAN.
Cite As
Fred Massin (2026). minFractof (https://uk.mathworks.com/matlabcentral/fileexchange/48658-minfractof), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Descriptive Statistics and Visualization > Descriptive Statistics >
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
