display info while ginput() waits

3 ビュー (過去 30 日間)
William Rose
William Rose 2017 年 1 月 12 日
コメント済み: Ahmad Gad 2024 年 1 月 19 日
How can I display and update the current mouse position while ginput() is waiting for the user to click? I have tried using textarea=uitextarea('Value',str1); but it only displays something once, after the user clicks. Thank you.
  2 件のコメント
John BG
John BG 2017 年 1 月 12 日
look in the file exchange, there are already available solutions for this question
William Rose
William Rose 2017 年 1 月 19 日
Thank you John BG. I have read the ginputc() help and downloaded the routine. It does not do what I am seeking, since it does not allow me to display something (namely the scaled cursor position), and change what I am displaying as the cursor moves, while waiting for the user to click. I will keep looking in the file exchange.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2017 年 1 月 19 日
  1 件のコメント
Ahmad Gad
Ahmad Gad 2024 年 1 月 19 日
It looks like this function doesn't work for most recent MATLAB versions. Do you have any alternatives in mind? Thank you!

サインインしてコメントする。

その他の回答 (1 件)

Vishal Neelagiri
Vishal Neelagiri 2017 年 1 月 18 日
編集済み: Walter Roberson 2017 年 1 月 19 日
You might want to have a look at this custom ginput function submitted via MATLAB File Exchange:
  1 件のコメント
William Rose
William Rose 2017 年 1 月 19 日
Thank you Vishal N. I have looked at ginputc(). It is very nice but does not do what I am hoping to do.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeData Exploration についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by