フィルターのクリア

Time to run programming

2 ビュー (過去 30 日間)
Jerry Walker
Jerry Walker 2013 年 10 月 21 日
編集済み: Image Analyst 2013 年 10 月 21 日
Is there a way to insert code to determine the length of time MATLAB takes to process sections of coding? For example the time it takes to run thru a loop.

回答 (3 件)

Azzi Abdelmalek
Azzi Abdelmalek 2013 年 10 月 21 日
Use
tic
%your code
toc

sixwwwwww
sixwwwwww 2013 年 10 月 21 日

Image Analyst
Image Analyst 2013 年 10 月 21 日
編集済み: Image Analyst 2013 年 10 月 21 日
You can use tic and toc
tic;
% code
toc;
or you can use the new timeit() function:
Or you can push the "Run and Time" button on the toolbar.

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by