How can I change statebutton value?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
When I push button, I want to output my value on editfield.
And I did it, but I can't change my value when I pressed it again.
Here is my code,
app.Button_9.BackgroundColor = 'g'; %I want to change button's background color when I pressed it,
if sb.Value == 1;
app.EditField.Value = num2str(1)
else sb.Value == 0;
app.EditField.Value = num2str(2) %Actually, I want to reset the value when I pressed again, but I can't.
end
It means, I want to change my editfield value 1 to 0 when I pushed state button, and turn background color off.
Please help me
2 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Migrate GUIDE Apps 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!