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?
2 件のコメント
回答 (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!