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

27 ビュー (過去 30 日間)
Toni Urigüen
Toni Urigüen 2025 年 1 月 31 日 11:57
コメント済み: Toni Urigüen 2025 年 2 月 3 日 7:54
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 日 22:54
Ctrl-C will abort ginput (though it does throw an error).
  3 件のコメント
Walter Roberson
Walter Roberson 2025 年 2 月 2 日 19:30
Is it possible that you are using MacOS ?
Toni Urigüen
Toni Urigüen 2025 年 2 月 3 日 7:54
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 Center および File ExchangeAnnotations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by