How to execute at a specific time?
古いコメントを表示
Hello, I wish to run a script every 0.3333 seconds. The time it takes the computer to run it is much less than that.
How would I go about doing this? I tried things like
tic;
i= 1;
while i == 1
if rem(toc, 0.3333) == 0
*run script*
end
but using "while" means it's forever Busy.
採用された回答
その他の回答 (1 件)
Fangjun Jiang
2011 年 8 月 15 日
1 投票
use timer object. See example in help timer.
カテゴリ
ヘルプ センター および File Exchange で Performance and Memory についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!