Code running time calculation

5 visualizaciones (últimos 30 días)
Alina
Alina el 9 de Mzo. de 2014
Comentada: SUMAN MAITI el 28 de Nov. de 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???

Respuestas (1)

Mischa Kim
Mischa Kim el 9 de Mzo. de 2014
Editada: Mischa Kim el 9 de Mzo. de 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 comentarios
Tawanda Michael Guveya
Tawanda Michael Guveya el 28 de Oct. de 2019
how then can you assign the value to a variable.
SUMAN MAITI
SUMAN MAITI el 28 de Nov. de 2019
Each time it gives different time!

Iniciar sesión para comentar.

Categorías

Más información sobre MATLAB Coder en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by