[ 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 (2024). minFractof (https://www.mathworks.com/matlabcentral/fileexchange/48658-minfractof), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI, Data Science, and Statistics > Statistics and Machine Learning Toolbox > Descriptive Statistics and Visualization > Descriptive Statistics >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.