Just a quick and dirty example of a GUI that starts, pauses and stops a loop
Updated 3 Dec 2010

View License

After the user press start it starts adding 1 to the value displayed in the textbox until the user press pause or stop, also it shows how to enable and disable buttons.

I was inspired to do the GUI after seeing Doug’s MATLAB Video Tutorial called How to loop until a button is pushed in MATLAB in

Cite As

Paulo Silva (2024). SpSpj (https://www.mathworks.com/matlabcentral/fileexchange/29618-spspj), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Migrate GUIDE Apps in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes