Main Content
getpts
Specify points with mouse
getpts
is not recommended. Use one of the ROI classes instead,
described in Create ROI Shapes.
Description
[
lets you choose points in the current figure using the mouse. When you finish
selecting points, xi
,yi
] = getptsgetpts
returns the coordinates of the selected
points in xi
and yi
.
Use normal button clicks to add points. A shift-, right-, or double-click adds a final point and ends the selection. Pressing Return or Enter ends the selection without adding a final point. Pressing Backspace or Delete removes the previously selected point.
Examples
Input Arguments
Output Arguments
Version History
Introduced before R2006a