How to know time that spent matlab in solving problem?

回答 (2 件)

Evan
Evan 2014 年 8 月 19 日
編集済み: Evan 2014 年 8 月 19 日

0 投票

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.

カテゴリ

ヘルプ センター および File Exchange で Debugging and Improving Code についてさらに検索

タグ

質問済み:

2014 年 8 月 19 日

編集済み:

2014 年 8 月 19 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by