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!