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
38 Downloads
Updated Thu, 05 May 2016 11:06:43 +0000

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 (2024). 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
Find more on Linear Algebra in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0