MATLAB Function Reference    
move (COM)

Move and/or resize a COM control in its parent window

Syntax

Arguments

h
   Handle for a MATLAB COM control object.

position
   A four-element vector specifying the position of the control in the parent window. The elements of the vector are

Description

Moves the control to the position specified by the position argument. When you use move with only the handle argument, h, it returns a four-element vector indicating the current position of the control.

Examples

This example moves the control:

The next example resizes the control to always be centered in the figure as you resize the figure window. Start by creating the script resizectrl.m that contains

Now execute the following in MATLAB or in an M-file:

As you resize the figure window, notice that the circle moves so that it is always positioned in the center of the window.

See Also

set, get


  more movefile