Loadable Function: [x,y] = grab (axis)

Grab positions of landmarks on the screen.

x is the x coordinates of the points.

y is the y coordinates of the points.

axis (optional) if specified then the first 2 clicks must be on the appropriate axes. x and y (or just x if only 2 points specified ) will then be normalised.

for example:

x=grab([1 10]) 

the first two clicks should correspond to x=1 and x=10 subsequent clicks will then be normalized to graph units.

for example:

[x,y]=grab; 

gives x and y in screen pixel units (upper left = 0,0 )

Select points by positioning the cursor over the points and clicking <SPACE>. ’q’ or <ESC> quits

Package: windows