How to calculate execution time in Matlab?
조회 수: 2 (최근 30일)
이전 댓글 표시
채택된 답변
Jan
2022년 7월 30일
The direct method:
tic
x = sin(rand(1e4, 1e4));
toc
The smart method:
timeit(@() sin(rand(1e4, 1e4)))
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!