display info while ginput() waits

4 vues (au cours des 30 derniers jours)
William Rose
William Rose le 12 Jan 2017
Commenté : Ahmad Gad le 19 Jan 2024
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 commentaires
John BG
John BG le 12 Jan 2017
look in the file exchange, there are already available solutions for this question
William Rose
William Rose le 19 Jan 2017
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.

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 19 Jan 2017
  1 commentaire
Ahmad Gad
Ahmad Gad le 19 Jan 2024
It looks like this function doesn't work for most recent MATLAB versions. Do you have any alternatives in mind? Thank you!

Connectez-vous pour commenter.

Plus de réponses (1)

Vishal Neelagiri
Vishal Neelagiri le 18 Jan 2017
Modifié(e) : Walter Roberson le 19 Jan 2017
You might want to have a look at this custom ginput function submitted via MATLAB File Exchange:
  1 commentaire
William Rose
William Rose le 19 Jan 2017
Thank you Vishal N. I have looked at ginputc(). It is very nice but does not do what I am hoping to do.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by