MATLAB: How to make a simple start button

prompt buttonstart button

I was wondering if someone could tell me how to make a simple "start program button?" prompt where the program will only continue if the user hits "ok." If they hit "no," then the program just exits.This will got at the start of the program.

Best Answer

Check out the following link http://www.mathworks.com/help/matlab/ref/questdlg.html. You can use a question dialog to query the user if he/she wishes to start the program or not. Based on that result, the program will continue (or not).