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

조회 수: 1 (최근 30일)
alpedhuez
alpedhuez 2020년 8월 5일
답변: Star Strider 2020년 8월 5일
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?

채택된 답변

Star Strider
Star Strider 2020년 8월 5일
Is using sort is the best way?
Yes.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by