minFractof

MINFRACTOF Extract value at the Nth percentile.
114 Downloads
Updated 10 Dec 2014

View License

[ 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
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.1.0.0

Correction in help

1.0.0.0