how to catch object "button"
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens

hi, i try to catch this button
h = findobj('button one',app.Button) but i receive error..
How can i do it?
2 commentaires
Réponses (1)
Matt J
le 7 Juin 2025
Modifié(e) : Matt J
le 7 Juin 2025
You have it already. app.Button is the handle to that button, unless you've renamed it to something different from the text displayed in the button.
If you have renamed the button (but not the top level UIFigure), then you could also do,
findobj(app.UIFigure,'Text','Button')
0 commentaires
Voir également
Catégories
En savoir plus sur Interactive Control and Callbacks 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!