Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
In the group of buttons 1 to 9, what code should I use to print 0 if none of the buttons is selected, or if one is selected?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
In the group of buttons 1 to 9, what code should I use to print 0 if none of the buttons is selected, or if one is selected?
I want to use '' if else'' but when radio buttons become nonselected, value should show the zero value??
1 commentaire
Réponses (1)
Walter Roberson
le 13 Fév 2019
if you are using a uibuttongroup then check isempty() the Selected property of the group.
Cette question est clôturée.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!