Main Content
getrect
Specify rectangle with mouse
getrect
is not recommended. Use one of the ROI classes instead,
described in Create ROI Shapes.
Description
lets you select a
rectangle in the current axes using the mouse. When you finish selecting the
rectangle, rect
= getrectgetrect
returns information about the position and
size of the rectangle in rect
.
Use the mouse to click and drag the desired rectangle. To constrain the rectangle to be a square, use a shift- or right-click to begin the drag.
Examples
Input Arguments
Output Arguments
Version History
Introduced before R2006a