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

4 次查看(过去 30 天)
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

回答(1 个)

Les Beckham
Les Beckham 2025-1-31
Ctrl-C will abort ginput (though it does throw an error).
  3 个评论
Toni Urigüen
Toni Urigüen 2025-2-3
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...

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Graphics Performance 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by