Is there any function for running ginput in GUI?

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 comentarios

Rik
Rik el 26 de Nov. de 2019
A GUI is nothing special in Matlab. If you describe what you want to do, we might be able to provide you with more targeted help.
There is no fundamental reason why ginput can't work in a GUI.
Walter Roberson
Walter Roberson el 26 de Nov. de 2019
In MATLAB every figure is a gui.
Adam Danz
Adam Danz el 26 de Nov. de 2019
What does "alongside" mean in this case?

Iniciar sesión para comentar.

Más respuestas (1)

Mohammad Shahbazy
Mohammad Shahbazy el 27 de Nov. de 2019
Editada: Walter Roberson el 6 de En. de 2020
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 comentarios

Adam Danz
Adam Danz el 6 de En. de 2020
Could you attach your GUI files and instructions on how to recreate the error from within the GUI?
Walter Roberson
Walter Roberson el 24 de Mzo. de 2020
It appears that ginput is looking for a toolbar and not finding one.
Which MATLAB version are you using?
Mohammad Shahbazy
Mohammad Shahbazy el 24 de Mzo. de 2020
Editada: Mohammad Shahbazy el 24 de Mzo. de 2020
Walter, Thanks for your reply.
Fortunately, I have just solved the issue by finding a function here:
I use MATLAB ver. R2018b.

Iniciar sesión para comentar.

Categorías

Más información sobre Data Exploration en Centro de ayuda y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by