Specify points with mouse
getpts is not recommended. Use one of the ROI classes instead,
described in ROI Creation Overview.
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.
Display an image using
getpts to choose points interactively in the
displayed image using the mouse. Double-click to complete your selection.
When you are done,
getpts returns the coordinates of your
[x,y] = getpts
fig— Figure handle
Figure handle, specified as a handle.
ax— Axes handle
Axes handle, specified as a handle.
xi— x-coordinates of sampled points
x-coordinates of sampled points, returned as a numeric vector.
yi— y-coordinates of sampled points
y-coordinates of sampled points, returned as a numeric vector.