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

1 visualizzazione (ultimi 30 giorni)
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?

Risposta accettata

Star Strider
Star Strider il 5 Ago 2020
Is using sort is the best way?
Yes.

Più risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by