if i have a for loop doing iterations based on random intervals of time between .5-5 seconds, how do i keep track of that time?

 채택된 답변

Andrei Bobrov
Andrei Bobrov 2012년 11월 29일
편집: Andrei Bobrov 2012년 11월 29일
x = cumsum(.5+4.5*rand(60,1));
or just
x = sum(.5+4.5*rand(60,1));

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

태그

질문:

2012년 11월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by