Sorting and finding index with Simulink (without Matlab function block or any toolbox)

I need to sort an incoming array and find the indices of the first nth smallest numbers in the array. I need to accomplish this without any toolbox or Matlab function.

 採用された回答

Vineeth Tom
Vineeth Tom 2019 年 7 月 10 日

0 投票

Hope this helps. It cannot do its job if there are repeating elements. This sorts an array of unique elements

その他の回答 (0 件)

カテゴリ

質問済み:

2019 年 7 月 8 日

回答済み:

2019 年 7 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by