最近在做路径规划,期间想看看规划的路径怎么样,想用动画演示出来,于是想到了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 Wait for user response.
PAUSE(n)函数是程序停止n秒后继续,n可以使分数或小数。函数的分辨率根据平台而定,大多数平台都能满足0.01秒的精度。
可以使用PAUSE让程序停止运行直到用户敲击键盘。
