Azzera filtri
Azzera filtri

Code running time calculation

1 visualizzazione (ultimi 30 giorni)
Alina
Alina il 9 Mar 2014
Commentato: SUMAN MAITI il 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???

Risposte (1)

Mischa Kim
Mischa Kim il 9 Mar 2014
Modificato: Mischa Kim il 9 Mar 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 Commenti
Tawanda Michael Guveya
Tawanda Michael Guveya il 28 Ott 2019
how then can you assign the value to a variable.
SUMAN MAITI
SUMAN MAITI il 28 Nov 2019
Each time it gives different time!

Accedi per commentare.

Categorie

Scopri di più su MATLAB Coder in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by