display info while ginput() waits

조회 수: 7 (최근 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 CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by