How to know what is the computational time for running matlab simulink?
Show older comments
Hi!
My supervisor ask me just now what is my computational time? How can i know? where can I check this? Can this value be modify by me depend on my applications??
Thank you
p/s need prompt feedback
Answers (4)
Aurelien Queffurust
on 13 Sep 2011
1 vote
Fangjun Jiang
on 13 Sep 2011
Missing point.
Model='f14';
open_system(Model)
tic;
sim(Model);
toc;
tic/toc is like stopwatch to measure the time. You can use sim() to run simulation of a Simulink model at the command line.
Nina
on 13 Sep 2011
0 votes
Write "tic" at the beginning of your code, and "toc" at the end.
Andreas Goser
on 13 Sep 2011
0 votes
In addition, you can use CPUTIME and ETIME.
BUT
Typically, nobody asks this for pure curiosity. Do you need to reduce the time of the application?
1 Comment
supriya diwan
on 29 Nov 2022
yes, I need to reduce computational time
Categories
Find more on Application Deployment in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!