ginput doe not work anymore
Mostrar comentarios más antiguos
[TrajX, TrajY] = ginput;
this has worked great but now does not work at all. I click mouse to select a region -- with simultaneous press of shift, or without -- and I get nothing. What is the problem? I have checked the Matlab help and documentation, but no clue how to use it
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 7 de Dic. de 2016
If you want to return after clicking a single point, then try this:
again = true;
while again
[TrajX, TrajY] = ginput(1);
promptMessage = sprintf('Do you want to accept this point and Continue\nor re-do it and click the point again?');
titleBarCaption = 'Continue?';
buttonText = questdlg(promptMessage, titleBarCaption, 'Continue', 'Re-do', 'Continue');
if strcmpi(buttonText, 'Continue')
again = false;
end
end
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!