User`s guide

Compose and Code GUIs with Interactive Tools
rect = get(handle,'Position');
inspect(handle)
To experiment with the function, enter the following code in the Command
Window:
hfig = figure;
hsl = uicontrol('Style','slider ')
editpos(hsl)
After you call editpos, the following prompt appears:
=== Select, move and resize the object. Use mouse and arrow keys.
=== When you are finished, press Return to continue.
When you first enter plot edit mode, the selection is figure itself. Click the
slider to select it and reposition it. For example, move it to the right side of
the figure and orient it vertically, as shown in the following figure.
11-45