Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Picking coordinates with mouse ?

0 views
Skip to first unread message

Michael Budach

unread,
Sep 1, 2000, 12:13:11 PM9/1/00
to
Hello all

I want to click with the mouse somewhere in a figure window an read the
coordinates within a m-file.

Can anyone help

Thanks in advance:

Michael Budach

Zaki Shirwani

unread,
Sep 1, 2000, 11:25:17 AM9/1/00
to

>> help ginput

GINPUT Graphical input from mouse.
[X,Y] = GINPUT(N) gets N points from the current axes and returns
the X- and Y-coordinates in length N vectors X and Y. The cursor
can be positioned using a mouse (or by using the Arrow Keys on some
systems). Data points are entered by pressing a mouse button
or any key on the keyboard except carriage return, which terminates
the input before N points are entered.

[X,Y] = GINPUT gathers an unlimited number of points until the
return key is pressed.

[X,Y,BUTTON] = GINPUT(N) returns a third result, BUTTON, that
contains a vector of integers specifying which mouse button was
used (1,2,3 from left) or ASCII numbers if a key on the keyboard
was used.

>>

HTH,

-- Zaki


Michael Budach wrote in message
<39AFD597...@physik.tu-darmstadt.de>...

Eli Horn

unread,
Sep 10, 2000, 2:03:42 AM9/10/00
to
Try:
> help ginput

Eli.

Michael Budach <Michael...@physik.tu-darmstadt.de> wrote in message
news:39AFD597...@physik.tu-darmstadt.de...

0 new messages