全站数据
8 4 2 0 5 8 1

matlab的gui怎么设置延时

IT小猫 | 简单学习,快乐成才!         
问题更新日期:2024-10-12 14:32:04

问题描述

matlab的gui怎么设置延时,在线求解答
精选答案
最佳答案

采用MATLAB中的延时函数pause:Halt execution temporarily实现代码如下:

1.pause, by itself, causes M-files to stop and wait for you topress any key before continuing.

2.pause(n) pauses execution for n seconds before continuing, wheren can be any nonnegative real number.

3.pause(inf) puts you into an infinite loop. To return to theMATLAB prompt, type Ctrl+C.

4.pause on allows subsequent pause commands to pauseexecution.

5.pause off ensures that any subsequent pause or pause(n) statements do not pause execution.