Getting ginput to read axes on an appdesigner GUI
조회 수: 17 (최근 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!