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?

 采纳的回答

James Tursa
James Tursa 2017-6-13
编辑:James Tursa 2017-6-13

0 个投票

I would start with tic and toc. You could also use timeit.

更多回答(1 个)

Walter Roberson
Walter Roberson 2017-6-13

0 个投票

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...)

类别

帮助中心File Exchange 中查找有关 Parallel Computing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by