How to get mouse coordinates in GUI (AppDesigner) ?
13 次查看(过去 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!