Code running time calculation

7 ビュー (過去 30 日間)
Alina
Alina 2014 年 3 月 9 日
コメント済み: SUMAN MAITI 2019 年 11 月 28 日
i have coded an algorithm in MATLAB, i want to calculate the processing time of that code.
means the time in which input is given and out put is produced. is there any method or process or code that calculate processing time time???

回答 (1 件)

Mischa Kim
Mischa Kim 2014 年 3 月 9 日
編集済み: Mischa Kim 2014 年 3 月 9 日
Alina, use tic at the beginning, and toc at the end of the part of the code you want to measure execution time of. E.g.,
tic
pause(3)
toc
  4 件のコメント
Tawanda Michael Guveya
Tawanda Michael Guveya 2019 年 10 月 28 日
how then can you assign the value to a variable.
SUMAN MAITI
SUMAN MAITI 2019 年 11 月 28 日
Each time it gives different time!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by