Pause a long MATLAB run with a simple click.

A simple way to pause a long simulation, to check progress, without expensive breakpoints or checks

Download
Download

You are now following this Submission

Cite As

Roni Peer (2026). Pause a long MATLAB run with a simple click. (https://www.mathworks.com/matlabcentral/fileexchange/35114-pause-a-long-matlab-run-with-a-simple-click), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Soft interrupting of long computer runs

Categories

Find more on Debugging and Improving Code in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0

- Changed the "clear(h)" command to "close(h)" in order to close the button when the simulation finishes.
- Updated the description, to reflect development effort that were added in R2016a version.

Download
1.1.0

Removed unnecessary FLAG checks.

Download
1.0.0

Download