how to calculate algorithm speed?

i have simple mat-lab algorithm and i would like to know how to calculate the speed of the algorithm?

 Accepted Answer

James Tursa
James Tursa on 13 Jun 2017
Edited: James Tursa on 13 Jun 2017
I would start with tic and toc. You could also use timeit.

More Answers (1)

Walter Roberson
Walter Roberson on 13 Jun 2017
You cannot. You can at best measure the speed of the implementation given those particular parameters, given whatever else the computer is doing at the same time (monitoring the mouse, checking for operating system updates, retrying to send the email messages stuck in the queue...)

Categories

Find more on Parallel Computing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!