Halt execution temporarily
使用方法:
pause
pause(n)
pause on
pause off
函数描述:
pause, by itself, causes M-files to stop and wait for you topress any key before continuing.
pause(n) pauses execution for n seconds before continuing, wheren can be any nonnegative real number. The resolution of the clockis platform specific. A fractional pause of 0.01 seconds should besupported on most platforms.
pause(inf) puts you into an infinite loop. To return to theMATLAB prompt, type Ctrl+C.
pause on allows subsequent pause commands to pauseexecution.
pause off ensures that any subsequent pause or pause(n)statements do not pause execution. This allows normally interactivescripts to run unattended.
联系客服