findNsmallest

版本 1.1.0.0 (3.2 KB) 作者: Mattias Karlsson
Finds the N smallest values in the input. Very fast.
237.0 次下载
更新时间 2013/1/7

查看许可证

Example:
x = findNsmallest( [4 4 10 5 3 8], 3)

x =
4 4 3

Written in c, so the operation is fast. Type "mex findNSmallest.c" in matlab before use.

You might need a free compiler if it was not installed with your matlab:
http://www.mathworks.com/support/compilers/R2012b/win64.html

引用格式

Mattias Karlsson (2025). findNsmallest (https://ww2.mathworks.cn/matlabcentral/fileexchange/39727-findnsmallest), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Matrix Indexing 的更多信息

Community Treasure Hunt

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

Start Hunting!

findNsmallest/

版本 已发布 发行说明
1.1.0.0

Added example to description

1.0.0.0