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!