加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

MATLAB 延时函数

(2010-06-11 19:38:28)
标签:

it

分类: matlab
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

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有