how to catch object "button"
조회 수: 2 (최근 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!