Is there any function for running ginput in GUI?

조회 수: 2 (최근 30일)
Mohammad Shahbazy
Mohammad Shahbazy 2019년 11월 26일
편집: Mohammad Shahbazy 2020년 3월 24일
Dear All,
Is there any possibility to run ginput on the Axes in GUI writen in GUIDE to select a sub-space of a scatter plot?
Thank you in advance
  댓글 수: 3
Walter Roberson
Walter Roberson 2019년 11월 26일
In MATLAB every figure is a gui.
Adam Danz
Adam Danz 2019년 11월 26일
What does "alongside" mean in this case?

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2019년 11월 26일

추가 답변 (1개)

Mohammad Shahbazy
Mohammad Shahbazy 2019년 11월 27일
편집: Walter Roberson 2020년 1월 6일
Thanks for your answers.
I want to plot data objects as a scatter plot and then select a sub-space of data by ginput and export the selected data from the plot. I am doing it properly outside of the GUI but in the GUI the code face with error (find the attached error). Also I can run it in an external figure as
figure(1);plot(X(:,1),X(:,2),'.'); ...
X = rand(1000,2);
plot(X(:,1),X(:,2),'.');
[x,y] = ginput(7);
  댓글 수: 3
Walter Roberson
Walter Roberson 2020년 3월 24일
It appears that ginput is looking for a toolbar and not finding one.
Which MATLAB version are you using?
Mohammad Shahbazy
Mohammad Shahbazy 2020년 3월 24일
편집: Mohammad Shahbazy 2020년 3월 24일
Walter, Thanks for your reply.
Fortunately, I have just solved the issue by finding a function here:
I use MATLAB ver. R2018b.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by