Requirement to speed up MATLAB Simulink file

6 ビュー (過去 30 日間)
Alinjar Dan
Alinjar Dan 2022 年 6 月 2 日
編集済み: Yair Altman 2022 年 6 月 2 日
We have a MATLAB Simulink file with a lot of matlab functions inside it. We have created necessary .mex files and called them inside Matlab functions. The issue is that it is taking a whole lot of time. In order to speed up the process we used mex files, but that's not working. KIndly suggest on how to use mex files directly in simulink in some other way so that simulation gets quicker.
  1 件のコメント
Walter Roberson
Walter Roberson 2022 年 6 月 2 日
Perhaps use Level 2 S functions?


回答 (1 件)

Yair Altman
Yair Altman 2022 年 6 月 2 日
編集済み: Yair Altman 2022 年 6 月 2 日
Use the Profiler to discover where your performance hotspots are. It is quite possible that you will discover that it's not in your mex files but somewhere else. Or perhaps that your system calls your functions many more times than what you really need. You will be much more informed after running the Profiler and then you can focus on the hotspots that you'll discover.


Help Center および File ExchangeSimulink についてさらに検索





Community Treasure Hunt

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

Start Hunting!

Translated by