12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

selectmoveresizePurpose2selectmoveresizeSelect, move, resize, or copy axes and uicontrol graphics objectsSyntaxDescriptionA = selectmoveresize;set(h,'ButtonDownFcn','selectmoveresize')selectmoveresize is useful as the callback routine for axes and uicontrolbutton down functions. When executed, it selects the object and allows you tomove, resize, and copy it.For example, this statement sets the ButtonDownFcn of the current axes toselectmoveresize:set(gca,'ButtonDownFcn','selectmoveresize')A = selectmoveresize returns a structure array containing:• A.Type: a string containing the action type, which can be Select, Move,Resize, or Copy.• A.Handles: a list of the selected handles or for a Copy an m-by-2 matrixcontaining the original handles in the first column and the new handles inthe second column.See AlsoThe ButtonDownFcn of axes and uicontrol graphics objects2-432

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!