Execution Time Calculation in Simulink

1 次查看(过去 30 天)
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
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
Like this?
tic;
sim('MyModel');
toc;

类别

Help CenterFile Exchange 中查找有关 Manual Performance Optimization 的更多信息

标签

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by