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
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 LinuxCategories
- MATLAB > Mathematics > Linear Algebra >
Find more on Linear Algebra in Help Center and MATLAB Answers
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.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |