MATLAB 延时函数
(2010-06-11 19:38:28)
MATLAB 延时函数
最近在做路径规划,期间想看看规划的路径怎么样,想用动画演示出来,于是想到了MATLAB有没有延时函数,在指定时间后播放下一动作,就可以模仿真实的运动情况。搜索结果如下,供大家分享。
PAUSE Wait for user response. PAUSE等待用户的相应。
PAUSE(n)
pauses for n seconds before continuing, where n can also be a
fraction. The resolution(分辨率) of the clock is platform specific.
Fractional pauses of 0.01 seconds should be supported on most
platforms.
PAUSE(n)函数是程序停止n秒后继续,n可以使分数或小数。函数的分辨率根据平台而定,大多数平台都能满足0.01秒的精度。
PAUSE causes
a procedure to stop and wait for the user to strike any key before
continuing.
可以使用PAUSE让程序停止运行直到用户敲击键盘。
PAUSE OFF
indicates that any subsequent PAUSE or PAUSE(n) commands should not
actually pause. This allows normally interactive scripts to run
unattended.
PAUSE OFF 关闭之后所有的PAUSE函数的暂停功能。
PAUSE ON
indicates that subsequent PAUSE commands should pause.
PAUSE ON 打开之后的所有PAUSE函数的功能。
|
喜欢
0
赠金笔
加载中,请稍候......