I have a code that uses ginput to gather data. I keep getting this message when I am done gathering data and close the figure.
Error using ginput (line 81)
Interrupted by figure deletion
Error in plotdecon5b (line 52)
[x,k]=ginput;
Is there a way to tell ginput I am done selecting data and not have to close the figure?

 Respuesta aceptada

Jos (10584)
Jos (10584) el 31 de Mayo de 2016

0 votos

try, xy = ginput, catch end

3 comentarios

Sandy
Sandy el 31 de Mayo de 2016
Editada: Sandy el 31 de Mayo de 2016
The issue I have is that Matlab is using 'enter' to move on to the next set of data instead of ending ginput. Is there a way to set a different key to end it?
Jos (10584)
Jos (10584) el 1 de Jun. de 2016
?? On my matlab version ginput is exited by pressing enter. I think the code you are using is flawed ...
Adam Danz
Adam Danz el 25 de Sept. de 2020
Jos is correct and it's clearly stated in the documentation.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Etiquetas

Preguntada:

el 31 de Mayo de 2016

Comentada:

el 25 de Sept. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by