adding a delay between commands to a program

3 次查看(过去 30 天)
hello i am sending commands to a chip and I need a 1 second delay between each command. I am new to matlab and not sure how this would be done.

回答(1 个)

TAB
TAB 2012-7-16
See pause function.
But scheduling your tasks with timer is best option.
  1 个评论
Jan
Jan 2012-7-16
In addition to pause, the commands clock and etime could be useful, while cputime does something else.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Clocks and Timers 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by