Code running time calculation

i have coded an algorithm in MATLAB, i want to calculate the processing time of that code.
means the time in which input is given and out put is produced. is there any method or process or code that calculate processing time time???

답변 (1개)

Mischa Kim
Mischa Kim 2014년 3월 9일
편집: Mischa Kim 2014년 3월 9일

0 개 추천

Alina, use tic at the beginning, and toc at the end of the part of the code you want to measure execution time of. E.g.,
tic
pause(3)
toc

댓글 수: 4

Alina
Alina 2014년 3월 9일
thank you
rasool alturfi
rasool alturfi 2017년 1월 6일
is thers any similar method to calculate execution time in simulation? thanks...
Tawanda Michael Guveya
Tawanda Michael Guveya 2019년 10월 28일
how then can you assign the value to a variable.
SUMAN MAITI
SUMAN MAITI 2019년 11월 28일
Each time it gives different time!

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 MATLAB Coder에 대해 자세히 알아보기

질문:

2014년 3월 9일

댓글:

2019년 11월 28일

Community Treasure Hunt

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

Start Hunting!

Translated by