how to catch object "button"
Mostra commenti meno recenti

hi, i try to catch this button
h = findobj('button one',app.Button) but i receive error..
How can i do it?
2 Commenti
Chuguang Pan
il 7 Giu 2025
Risposte (1)
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')
Categorie
Scopri di più su Interactive Control and Callbacks in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!