Sorting and finding index with Simulink (without Matlab function block or any toolbox)
3 次查看(过去 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.
0 个评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Shifting and Sorting Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!