How to disable a button later in the program on gui
56 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I want to disable the roll button of a dice,after the player of my snakes and ladders program,has landed on 100......what function can I use to disable the button???
0 Commenti
Risposta accettata
Paulo Silva
il 8 Set 2011
%assuming you are using GUIDE and the button is called pushbutton1
set(handles.pushbutton1,'Enable','off')
After the code that rolls the dice finishes re-enable the button
%assuming you are using GUIDE and the button is called pushbutton1
set(handles.pushbutton1,'Enable','on')
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Dialog Boxes 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!