全站数据
8 4 2 0 5 8 1

matlab停留1秒怎么设置

今跃寄宿考研 | 简单学习,快乐成才!         
问题更新日期:2024-04-23 14:38:53

问题描述

matlab停留1秒怎么设置急求答案,帮忙回答下
精选答案
最佳答案

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

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

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.