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???

Réponses (1)

Mischa Kim
Mischa Kim le 9 Mar 2014
Modifié(e) : Mischa Kim le 9 Mar 2014

0 votes

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 commentaires

Alina
Alina le 9 Mar 2014
thank you
rasool alturfi
rasool alturfi le 6 Jan 2017
is thers any similar method to calculate execution time in simulation? thanks...
Tawanda Michael Guveya
Tawanda Michael Guveya le 28 Oct 2019
how then can you assign the value to a variable.
SUMAN MAITI
SUMAN MAITI le 28 Nov 2019
Each time it gives different time!

Connectez-vous pour commenter.

Catégories

En savoir plus sur MATLAB Coder dans Centre d'aide et File Exchange

Question posée :

le 9 Mar 2014

Commenté :

le 28 Nov 2019

Community Treasure Hunt

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

Start Hunting!

Translated by