get average elapsed time
古いコメントを表示
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 件のコメント
David Barry
2016 年 12 月 22 日
No idea what you are asking. Please upload the code so we can assist further.
採用された回答
その他の回答 (1 件)
Walter Roberson
2016 年 12 月 23 日
0 投票
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()
カテゴリ
ヘルプ センター および File Exchange で MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!