extract mth and m+1st largest element from a vector

1 Ansicht (letzte 30 Tage)
alpedhuez
alpedhuez am 5 Aug. 2020
Beantwortet: Star Strider am 5 Aug. 2020
maxk find the largest elements of an array. Then, is there a function that allows to extract a general mth and m+1st highest element from a vector. Is using sort is the best way?

Akzeptierte Antwort

Star Strider
Star Strider am 5 Aug. 2020
Is using sort is the best way?
Yes.

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by