How to get mouse coordinates in GUI (AppDesigner) ?
조회 수: 14 (최근 30일)
이전 댓글 표시
I am using MATLAB App Designer and have inserted axes into the app.
When the user clicks a button, I want them to be able to then select a point on the axes. Basically, the functionality should be identical to ginput.
How should I do this? I am aware that related questions have been asked but am honestly not able to understand parts of those or the solutions don't seem to work well. It looks to be something to do with using ButtonDownFcn callback and CurrentPosition but I'm not able to understand how to use these.
Thanks for your help!
Mohit.
댓글 수: 0
채택된 답변
Ameer Hamza
2020년 10월 2일
편집: Ameer Hamza
2020년 10월 2일
Check the attached app for the demo.
댓글 수: 2
Ameer Hamza
2020년 10월 8일
This might be some bug. You may consider filing a bug report: https://www.mathworks.com/support/bugreports/report_bug
추가 답변 (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!