How to know time that spent matlab in solving problem?
3 次查看(过去 30 天)
显示 更早的评论
How to know the time that spent matlab in solving or calculating the problem?
0 个评论
回答(2 个)
Evan
2014-8-19
编辑:Evan
2014-8-19
help profile
or
help tic
Running tic and toc will simply tell you how much time passed between the respective commands.
Running profile on and profile viewer will give more detailed information, including the time spent in each subfunction of your code. It can be very helpful for finding bottlenecks.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!