Execution Time Calculation in Simulink

2 visualizzazioni (ultimi 30 giorni)
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!

Risposta accettata

Ameer Hamza
Ameer Hamza il 18 Mag 2020
Modificato: Ameer Hamza il 19 Mag 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.

Più risposte (1)

Fangjun Jiang
Fangjun Jiang il 18 Mag 2020
Like this?
tic;
sim('MyModel');
toc;

Categorie

Scopri di più su Simulink Coder in Help Center e File Exchange

Tag

Prodotti


Release

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by