Code running time calculation

4 Ansichten (letzte 30 Tage)
Alina
Alina am 9 Mär. 2014
Kommentiert: SUMAN MAITI am 28 Nov. 2019
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???

Antworten (1)

Mischa Kim
Mischa Kim am 9 Mär. 2014
Bearbeitet: Mischa Kim am 9 Mär. 2014
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 Kommentare
Tawanda Michael Guveya
Tawanda Michael Guveya am 28 Okt. 2019
how then can you assign the value to a variable.
SUMAN MAITI
SUMAN MAITI am 28 Nov. 2019
Each time it gives different time!

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu MATLAB Coder finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by