Main Content
mink
Find k
smallest elements of array
Description
returns the B
= mink(A
,k
)k
smallest elements of A
.
If
A
is a vector, thenmink
returns a vector containing thek
smallest elements ofA
.If
A
is a matrix, thenmink
returns a matrix whose columns contain thek
smallest elements of each column ofA
.If
A
is a multidimensional array, thenmink
returns thek
smallest elements along the first dimension whose size does not equal 1.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2017b