Code running time calculation
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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???
0 commentaires
Réponses (1)
Mischa Kim
le 9 Mar 2014
Modifié(e) : Mischa Kim
le 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 commentaires
Voir également
Catégories
En savoir plus sur MATLAB Coder dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!