How to make a simple start button?

4 次查看(过去 30 天)
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.

采纳的回答

Geoff Hayes
Geoff Hayes 2014-6-24
编辑:Geoff Hayes 2014-6-24
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 个评论
Michael
Michael 2014-6-24
Got it to work. Thanks for the help!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Performance and Memory 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by