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

 Réponse acceptée

James Tursa
James Tursa le 13 Juin 2017
Modifié(e) : James Tursa le 13 Juin 2017

0 votes

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

Plus de réponses (1)

Walter Roberson
Walter Roberson le 13 Juin 2017

0 votes

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

Catégories

En savoir plus sur Parallel Computing Toolbox dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by