필터 지우기
필터 지우기

If I am runing a code has several iterations, Can I get the time of simulation after running for many minutes ?

조회 수: 2 (최근 30일)
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

채택된 답변

Image Analyst
Image Analyst 2022년 4월 17일
startingTime = tic
% Your code
elapsedSeconds = toc(startingTime)
message = sprintf('The elapsed time = %.1f minutes.', elapsedSeconds/60);
uiwait(helpdlg(message));

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by