필터 지우기
필터 지우기

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 CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by