Filter löschen
Filter löschen

How to control mouse pointer?

3 Ansichten (letzte 30 Tage)
CalebJones
CalebJones am 31 Okt. 2019
Kommentiert: Walter Roberson am 31 Okt. 2019
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 Kommentare
CalebJones
CalebJones am 31 Okt. 2019
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 am 31 Okt. 2019
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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Specifying Target for Graphics Output finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by