get average elapsed time
Afficher commentaires plus anciens
Hi. I have probability p in the code, so everytime I run it, different ans and elapsed time are obtained. I want to run the code for 100 times and get the avg ans and elapsed time. Do you know how to get these?
1 commentaire
David Barry
le 22 Déc 2016
No idea what you are asking. Please upload the code so we can assist further.
Réponse acceptée
Plus de réponses (1)
Walter Roberson
le 23 Déc 2016
0 votes
If you are interested in measuring average performance of your routine (rather than being interested in the average time to produce that specific set of values), then see timeit()
Catégories
En savoir plus sur MATLAB dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!