how to catch object "button"
1 次查看(过去 30 天)
显示 更早的评论

hi, i try to catch this button
h = findobj('button one',app.Button) but i receive error..
How can i do it?
回答(1 个)
Matt J
2025-6-7
编辑:Matt J
2025-6-7
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!