image thumbnail


version (5.7 KB) by Paulo Silva
Just a quick and dirty example of a GUI that starts, pauses and stops a loop


Updated 03 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 (2021). SpSpj (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!