KMINIMA

Specified number of minima.
1.7K Downloads
Updated 24 Nov 2004

No License

KMINIMA specified number of minima
For vectors, KMINIMA(X,K) is the vector of K smallest elements in X.
For matrices, Y = KMINIMA(X,K) is a matrix with K rows; Y(i,:)
contains the i-th minimum element from each column. For N-D arrays,
KMINIMA(X,K) operates along the first non-singleton dimension.

[Y,I] = KMINIMA(X,K) returns the indices of the minima in vector I.

[Y,I] = KMINIMA(X,K,DIM) operates along
the dimension DIM.

When complex, the magnitude ABS(X) is considered when computing the
minima, and the angle ANGLE(X) is ignored. NaN's are also ignored .

Cite As

Mukhtar Ullah (2024). KMINIMA (https://www.mathworks.com/matlabcentral/fileexchange/6307-kminima), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Fourier Analysis and Filtering in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0

One limitation removed