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
Paulo Silva (2019). SpSpj (https://www.mathworks.com/matlabcentral/fileexchange/29618-spspj), MATLAB Central File Exchange. Retrieved .