MATLAB Answers

Is there any function for running ginput in GUI?

14 ビュー (過去 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 件のコメント
Adam Danz
Adam Danz 2019 年 11 月 26 日
What does "alongside" mean in this case?

サインインしてコメントする。

採用された回答

その他の回答 (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 件のコメント
Mohammad Shahbazy
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.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by