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 ExchangeParallel Computing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by