Min/Max selection

Search for k smallest or largest elements in the array

Download
Download

You are now following this Submission

Cite As

Bruno Luong (2026). Min/Max selection (https://www.mathworks.com/matlabcentral/fileexchange/23576-min-max-selection), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.15.0

Disable inplace arrays for more recent MATLAB versions
Fix issue with dummy argument not assigned

Download
1.14.0

Fix install issue with R2014

Download
1.13.0

Fix C/C++ comment style issue

Download
1.12.0

Change installation script, now copy prototype header file for V2010B or later.
Correct BUG when working on sparse matrix.

Download
1.11.0

Specific installation for R2010B

Download
1.10.0

Fix the bugs for sparse and all-NaN vector

Download
1.9.0

Possibility to disable post-sorting step

Download
1.8.0

Correct bug: cleanup the inplace variable when MEX issues an error (otherwise computer might crash)

Download
1.7.0

Correct bug + inplace engine

Download
1.6.0

handle arrays with NaN

Download
1.5.0

Supported sparse input

Download
1.1.0

Bug correction (for k=0)
Do not compute unnecessary location indexes when not required.

Download
1.0.0

Download