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