버전 (1.26 KB) 작성자: Murphy O'Brien
Allows user to pause MATLAB simulation.
다운로드 수: 2.4K
업데이트 날짜: 2006/10/10

라이선스 없음

Displays a button which, if clicked, causes MATLAB to pause and ask for an expression to be entered. This expression is evaluated in the calling functions workspace, the result is displayed and then MATLAB continues running its script/simulation.

pauseButton should be called often from inside a loop in a simulation which the user may want to pause. After the first call, it takes almost zero processing time.

Useful if e.g. you are running a long simulation and suddenly decide you want to know how many five card poker hands are in a pack.

Click the pause button, enter nchoosek(52,5) at the command window prompt then press return. Matlab displays
ans =
and continues the simulation.

example usage:

for ii=1:50000
for jj=1:1000

Uses almost no processing time.

인용 양식

Murphy O'Brien (2024). pauseButton (, MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R14
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
Help CenterMATLAB Answers에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보

Uses the calling functions variable space, allows you to see its variables. Fixed problem where closing it while running caused the calling function error. Now handle invisible so plotting wont plot to the button. Changed title to pause button.