Image Processing Toolbox User's Guide Previous page   Next Page
getrect

Select rectangle with mouse

Syntax

Description

rect = getrect(fig) lets you select a rectangle in the current axes of figure fig using the mouse. Coordinates of the rectangle are returned in X and Y.

Use the mouse to click and drag the desired rectangle. rect is a four-element vector with the form [xmin ymin width height]. To constrain the rectangle to be a square, use a shift- or right-click to begin the drag.

rect = getrect(ax) lets you select a rectangle in the axes specified by the handle ax.

See Also

getline, getpts


Previous page  getrangefromclass getsequence Next page

© 1994-2005 The MathWorks, Inc.