large
K-th largest value in an array.
Syntax
Section titled “Syntax”v = large(array, k)Description
Section titled “Description”Returns the k-th largest value in array. large(array, 1) is max(array); large(array, length(array)) is min(array).
Examples
Section titled “Examples”large([3 5 7 9 11], 2) % 9large([3 5 7 9 11], 1) % 11 (= max)