How to know time that spent matlab in solving problem?

2 visualizzazioni (ultimi 30 giorni)
Taguhi
Taguhi il 19 Ago 2014
Modificato: Evan il 19 Ago 2014
How to know the time that spent matlab in solving or calculating the problem?

Risposte (2)

Evan
Evan il 19 Ago 2014
Modificato: Evan il 19 Ago 2014
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.

Azzi Abdelmalek
Azzi Abdelmalek il 19 Ago 2014
Use tic toc

Categorie

Scopri di più su Performance and Memory in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by