A C-mex Function to find N largest number in a Matrix
Version 1.0.0.0 (6.22 KB) by
Changshun Deng
A c-mex function to find N largest number in a matrix.
1.2K Downloads
Updated
28 Sep 2005
No License
This is a C-Mex Fucntion to find n largest number in a matrix.
>> x=randperm(20);
>> nmax(x,5)
ans =
20 19 18 17 16
>> nthmax(x,5)
ans =
16
Cite As
Changshun Deng (2024). A C-mex Function to find N largest number in a Matrix (https://www.mathworks.com/matlabcentral/fileexchange/8568-a-c-mex-function-to-find-n-largest-number-in-a-matrix), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R13SP1
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Input Specification 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 |