필터 지우기
필터 지우기

How to control mouse pointer?

조회 수: 3 (최근 30일)
CalebJones
CalebJones 2019년 10월 31일
댓글: Walter Roberson 2019년 10월 31일
if value is left go left.
if value is right go right.
if value is rest stop pointer in its current position or bring back to center.
This in a loop would be great.
  댓글 수: 5
CalebJones
CalebJones 2019년 10월 31일
Undefined variable "handles" or class "handles.axis1".
Error in mouse (line 1)
ax = handles.axis1;
Walter Roberson I'm getting this error
Walter Roberson
Walter Roberson 2019년 10월 31일
It is pseudocode.
In particular, the expected context is that the code would be in a callback in a GUIDE created GUI, and that you had created an axes with tag 'axis1' that is the axes the cursor position is to move in. The code also assumes that you have stored an xy pair of the rest position in handles.xy_init and that you have previously initialized handles.xy to handles.xy_init

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by