How to sort an array efficiently in Simulink?
显示 更早的评论
I am trying to sort a given array in ascending order using Simulink blocks. Is there any block available which does this. If no, how could this be done efficiently in Simulink?
采纳的回答
更多回答(1 个)
Kirankumar Bacchewar
2021-10-15
0 个投票
Even the sort function from Matlab is not effecient, I see lot of overhead. In my case, the execution time reduced drastically after modifying(partial re-using) the generated code from Matlab sort in simulink. This modified code was then included back into the model as legacy code.
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!