Ginput - showing the coordinates of the mouse in ginput

조회 수: 3 (최근 30일)
Feri
Feri 2020년 3월 4일
댓글: Feri 2020년 3월 4일
Hello,
How can I get the corrdinates of the mouse when ginput is collecting data? i.e. How can I show the coordinates of the mouse for example as the figure title?
Thank you in advance.
  댓글 수: 2
Cam Salzberger
Cam Salzberger 2020년 3월 4일
Do you want to get the coordinates while the mouse if moving in a continuous manner, or are you looking to update the title of the figure with the coordinates of each click, as the user is allowed to click multiple times?
Feri
Feri 2020년 3월 4일
The first one, I want to see the exact location of the mouse when ginput is active.
The user clicks only once.

댓글을 달려면 로그인하십시오.

답변 (1개)

Walter Roberson
Walter Roberson 2020년 3월 4일
  댓글 수: 1
Feri
Feri 2020년 3월 4일
Thank you, this function gives me the coordinates when the ginput is done executing. What I need is these coordinates when ginput is running/collecting data.
Could you tell me how this is done?
Thanks.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Data Exploration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by