Enable a push button after testing conditions obtained from two other push buttons
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hugo Mendonça
le 24 Mai 2016
Modifié(e) : Hugo Mendonça
le 24 Mai 2016
Hi, Folks!
I have a question about using guide and I hope someone can help me.
From two push buttons, their callbacks give two values: flag1 and flag2.
So, I want to enable a third push button after comparing both flag1 and flag2. Where should I insert the if to get that?
Thanks in advanced!
0 commentaires
Réponse acceptée
Walter Roberson
le 24 Mai 2016
In the callbacks of both of the first two push buttons you would have something like
if handles.flag1 && handles.flag2
set(handles.button3, 'enable', 'on')
else
set(handles.button3, 'enable', 'off');
end
1 commentaire
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!