display info while ginput() waits

16 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Visual Exploration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by