Stoping / breaking ginput (or ginput(n)) before entrering any value / clicking any single time

I'd like to be able to break the execution of ginput even before any interaction (clicks) has been made, but pressing Return does not seem to work in this case (it works otherwise).
Any suggestions?
Thanks

Respuestas (1)

Ctrl-C will abort ginput (though it does throw an error).

3 comentarios

It does not work for me. No break and no error... But thanks
Is it possible that you are using MacOS ?
Hi! I'm using Windows. I am doing a GUI and need to get some values when using ginput. But I also would like to be able to interrupt it even without any clicks...

Iniciar sesión para comentar.

Categorías

Más información sobre Graphics Performance en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 31 de En. de 2025

Comentada:

el 3 de Feb. de 2025

Community Treasure Hunt

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

Start Hunting!

Translated by