Clear Filters
Clear Filters

Execution Time Calculation in Simulink

1 view (last 30 days)
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!

Accepted Answer

Ameer Hamza
Ameer Hamza on 18 May 2020
Edited: Ameer Hamza on 19 May 2020
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.

More Answers (1)

Fangjun Jiang
Fangjun Jiang on 18 May 2020
Like this?
tic;
sim('MyModel');
toc;

Categories

Find more on Manual Performance Optimization in Help Center and File Exchange

Tags

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!