How to know what is the computational time for running matlab simulink?

13 ビュー (過去 30 日間)
Nurazlin Mohd Yaakop
Nurazlin Mohd Yaakop 2011 年 9 月 13 日
コメント済み: supriya diwan 2022 年 11 月 29 日
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

回答 (4 件)

Aurelien Queffurust
Aurelien Queffurust 2011 年 9 月 13 日
You can use the profile function to get this information.

Fangjun Jiang
Fangjun Jiang 2011 年 9 月 13 日
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
Nina 2011 年 9 月 13 日
Write "tic" at the beginning of your code, and "toc" at the end.

Andreas Goser
Andreas Goser 2011 年 9 月 13 日
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?

カテゴリ

Help Center および File ExchangeConfigure and View Diagnostics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by