Filter löschen
Filter löschen

Execution Time Calculation in Simulink

1 Ansicht (letzte 30 Tage)
Saleh Msaddi
Saleh Msaddi am 18 Mai 2020
Bearbeitet: Ameer Hamza am 19 Mai 2020
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!

Akzeptierte Antwort

Ameer Hamza
Ameer Hamza am 18 Mai 2020
Bearbeitet: Ameer Hamza am 19 Mai 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.

Weitere Antworten (1)

Fangjun Jiang
Fangjun Jiang am 18 Mai 2020
Like this?
tic;
sim('MyModel');
toc;

Kategorien

Mehr zu Manual Performance Optimization finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by