PAUSE4

版本 1.2.0.0 (1.7 KB) 作者: Jiro Doke
Create true pause intervals while executing other lines of code.
1.9K 次下载
更新时间 2010/1/7

查看许可证

PAUSE4 Run code while pausing for specified time.

PAUSE4(n) ... PAUSE4 should be used as a clause that wraps code that is intended to run during a specified interval. n is in seconds, and it can be fractional. PAUSE4 without any arguments completes the pause routine.

Example:
PAUSE4(2);
<code 1>
PAUSE4;
<code 2>

This will run <code 1> during "pause" period, and <code 2> will be executed 2 seconds after PAUSE4(2) command.

This is useful if you want to maintain a regular interval, but do not want intermediate code to disrupt the interval. If the execution of <code 1> is longer than the pause period, <code 2> will execute immediately after the clause.

引用格式

Jiro Doke (2025). PAUSE4 (https://www.mathworks.com/matlabcentral/fileexchange/6834-pause4), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R13SP1
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.2.0.0

Copyright update.

1.1.0.0

Add BSD license.

1.0.0.0