MATLAB Function Reference    
move (COM)

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



   Handle for a MATLAB COM control object.

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


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.


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