Execution Time Calculation in Simulink

Hello friends,
I consider using simulating a model using only Simulink envirment. The Simulink model has MATLAB functions containing optimization algorithms, and no code generation is required. How can I find the time required to simulate the model?
ALL THE SIMULATION IS PERFORMED ON SIMULINK
Thanks!

 採用された回答

Ameer Hamza
Ameer Hamza 2020 年 5 月 18 日
編集済み: Ameer Hamza 2020 年 5 月 19 日

0 投票

See the profiling tools in Simulink: https://www.mathworks.com/help/simulink/ug/how-profiler-captures-performance-data.html. You can monitor the execution time of individual blocks.

その他の回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2020 年 5 月 18 日

0 投票

Like this?
tic;
sim('MyModel');
toc;

カテゴリ

ヘルプ センター および File ExchangeSimulink Coder についてさらに検索

製品

リリース

R2019b

タグ

質問済み:

2020 年 5 月 18 日

編集済み:

2020 年 5 月 19 日

Community Treasure Hunt

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

Start Hunting!

Translated by