帮助中心帮助中心
此 App 说明如何在 App 设计工具中创建计时器对象,按照固定时间间隔执行某个函数。在本例中,App 每秒钟都会生成随机数据并绘制结果。
此示例还演示了以下 App 构建任务:
为以编程方式创建的对象(本例中为计时器对象)编写回调
配置计时器对象以按照固定时间间隔执行回调
在用户点击开始按钮时启动计时器
在用户点击停止按钮时停止计时器
在 App 关闭时删除计时器
timer
memory
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office