
matlab中如何设置延迟
推荐于2017-10-07 · 知道合伙人互联网行家
关注

展开全部
采用MATLAB中的延时函数pause:Halt execution temporarily
实现代码如下:
1.pause, by itself, causes M-files to stop and wait for you to
press any key before continuing.
2.pause(n) pauses execution for n seconds before continuing, where
n can be any nonnegative real number.
3.pause(inf) puts you into an infinite loop. To return to the
MATLAB prompt, type Ctrl+C.
4.pause on allows subsequent pause commands to pause
execution.
5.pause off ensures that any subsequent pause or pause(n) statements do not pause execution.
实现代码如下:
1.pause, by itself, causes M-files to stop and wait for you to
press any key before continuing.
2.pause(n) pauses execution for n seconds before continuing, where
n can be any nonnegative real number.
3.pause(inf) puts you into an infinite loop. To return to the
MATLAB prompt, type Ctrl+C.
4.pause on allows subsequent pause commands to pause
execution.
5.pause off ensures that any subsequent pause or pause(n) statements do not pause execution.
展开全部
% pause(n) pauses execution for n seconds before continuing, where n can be any nonnegative real number. The resolution of the clock is platform specific. A fractional pause of 0.01 seconds should be supported on most platforms.
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
pause(你需要延迟的时间长度)
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询