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

4 次查看(过去 30 天)
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
Hope this helps. It cannot do its job if there are repeating elements. This sorts an array of unique elements

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Shifting and Sorting Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by