how to get best 10 fitness values

조회 수: 2 (최근 30일)
SARAH LONER
SARAH LONER 2020년 1월 25일
답변: Star Strider 2020년 1월 25일
hello sir,
i got 100*1 values from fitness formula. now i need best of 10 values
how do i get that

채택된 답변

Star Strider
Star Strider 2020년 1월 25일
If you have R2017b or later, mink would be easiest. Otherwise, use sort and take the first 10. (This assumes that ‘fitness’ is defined as the minimum value, usually the objective. If it is the maximum, use maxk or sort with the 'descend' option.)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by