Getting ginput to read axes on an appdesigner GUI
15 次查看(过去 30 天)
显示 更早的评论
I am trying to use ginput() on a GUI that I am building with appdesigner. The problem is that when I call ginput(), it creates a new figure window and then acts on that window, instead of on my GUI.
I've tried preceding it with a call to axes, i.e.
axes(app.ImageAxes);
[x, y] = ginput(1);
But that has the same effect, it still creates a new figure window and then puts the cross hairs on the new window.
What is the proper way to get ginput() to read from the axes in my GUI?
I just upgraded today so I am running in R2022a.
0 个评论
采纳的回答
Benjamin Thompson
2022-7-1
编辑:Adam Danz
2022-8-7
Here is a previous discussion on this topic:
2 个评论
Bruce Rodenborn
2024-1-19
How could this work? The whole point is to keep ginput focused on a the APP and this references a MATLAB figure window.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Visual Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!