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

1 view (last 30 days)
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?

Accepted Answer

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

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!