how to get best 10 fitness values

1 回表示 (過去 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 Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by