How to make a simple start button?

5 visualizzazioni (ultimi 30 giorni)
Michael
Michael il 24 Giu 2014
Commentato: Geoff Hayes il 25 Giu 2014
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.

Risposta accettata

Geoff Hayes
Geoff Hayes il 24 Giu 2014
Modificato: Geoff Hayes il 24 Giu 2014
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).
  5 Commenti
Michael
Michael il 24 Giu 2014
Got it to work. Thanks for the help!
Geoff Hayes
Geoff Hayes il 25 Giu 2014
Awesome!

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Performance and Memory in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by