I want to see how long it takes to run a model
3 views (last 30 days)
Show older comments
Fernando Beltrán
on 15 Sep 2016
Edited: Mohamed Belkhayat
on 27 Aug 2019
Good morning, I have a problem. I want to see how long it takes to run a model. But I do not know how to calculate the different times. (UpdateDiagramTime, AccelBuildTime and SimTime). If someone could help me. Thank you very much
1 Comment
Mohamed Belkhayat
on 27 Aug 2019
Edited: Mohamed Belkhayat
on 27 Aug 2019
tic;sim('model');a=toc;save sim_time a;
this runs the model and saves the time to a file named sim_time in case you need that.
Accepted Answer
Mischa Kim
on 15 Sep 2016
Edited: Mischa Kim
on 15 Sep 2016
Fernando, I assume you are talking about Simulink models. There is a functionality called profiler that might help you. See the documentation for more detail.
More Answers (1)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!