how to catch object "button"
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos

hi, i try to catch this button
h = findobj('button one',app.Button) but i receive error..
How can i do it?
2 comentarios
Respuestas (1)
Matt J
el 7 de Jun. de 2025
Editada: Matt J
el 7 de Jun. de 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 comentarios
Ver también
Categorías
Más información sobre Interactive Control and Callbacks en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!