How to store execution time in execution time in runtime
조회 수: 22 (최근 30일)
이전 댓글 표시
I have executed my program code and measure its execution time using tic toc. Is it possible to store this value run time in a excel file. Is there is another code to find execution time that can store it.
댓글 수: 0
채택된 답변
Adam
2015년 10월 1일
tic
...some code...
t = toc;
will store the time in 't'. Then you can do whatever you want with it from there.
댓글 수: 0
추가 답변 (1개)
Jan
2015년 10월 1일
Storing a time in an Excel file works exactly as storing any other value in an Excel file. See help xlswrite.
Using tic and toc is a smart way to determine the execution time, but storing values in a file is not its job. So you actual problem concerns writing data to files. So please specify what you have tried so far and which problems occur.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!