Code covered by the BSD License  

Highlights from
findNsmallest

findNsmallest

by

 

04 Jan 2013 (Updated )

Finds the N smallest values in the input. Very fast.

findNsmallest.m
%SMALLVALUES = findNSmallest(INPUTVALUES, N)
%
% Finds the N smallest values in INPUTVALUES and outputs them to SMALLVALUES
%
%[SMALLVALUES, INDEX] = findNSmallest(INPUTVALUES, N)
%
% INDEX is the index of the returned values in the original INPUTVALUES 

Contact us