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 (2026). minFractof (https://uk.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
Version Published Release Notes
1.1.0.0

Correction in help

1.0.0.0