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

1 vue (au cours des 30 derniers jours)
alpedhuez
alpedhuez le 5 Août 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?

Réponse acceptée

Star Strider
Star Strider le 5 Août 2020
Is using sort is the best way?
Yes.

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by