If I am runing a code has several iterations, Can I get the time of simulation after running for many minutes ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
omar th
am 17 Apr. 2022
Kommentiert: omar th
am 17 Apr. 2022
Simply, I want after stopping my simulation I want to show me the real time that took it
for example, 10 minutes
thanks in advance
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 17 Apr. 2022
startingTime = tic
% Your code
elapsedSeconds = toc(startingTime)
message = sprintf('The elapsed time = %.1f minutes.', elapsedSeconds/60);
uiwait(helpdlg(message));
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!