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

7 views (last 30 days)
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.

Accepted Answer

Vineeth Tom
Vineeth Tom on 10 Jul 2019
Hope this helps. It cannot do its job if there are repeating elements. This sorts an array of unique elements

More Answers (0)

Categories

Find more on Shifting and Sorting Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!