This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

Code Performance

Measure and profile MATLAB® code to improve performance


timeit Measure time required to run function
tic Start stopwatch timer
toc Read elapsed time from stopwatch
cputime Elapsed CPU time
profile Profile execution time for functions
bench MATLAB benchmark
Was this topic helpful?