image thumbnail

nthBounds(data,n)

version 1.0.0.0 (2.78 KB) by KSSV
To get the n'th minimum and maximum of a given array or a matrix

30 Downloads

Updated 05 May 2016

View License

nthBounds gives n'th minimum and maximum of a given array/ matrix.
Eg. A = [1 2 3; 4 5 6; 7 8 9]
[v0,v1] = nthBounds(A,1) ; % first min, max (1,9)
[v0,v1] = nthBounds(A,2) ; % second min, max (2,8)
[v0,v1] = nthBounds(A,3) ; % first min, max (3,7)

Cite As

KSSV (2021). nthBounds(data,n) (https://www.mathworks.com/matlabcentral/fileexchange/56931-nthbounds-data-n), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories

Community Treasure Hunt

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

Start Hunting!