setpixelposition
Set component position in pixels
Description
Note
The setpixelposition
function is not supported in App Designer
or in apps created using the uifigure
function. Instead, to specify
the position of a component in pixels, set its Units
property to
'pixels'
, and then set its position using the
Position
property.
pos = setpixelposition(
sets the position in pixels of the component specified by c
,position
)c
. Specify the
position as a four-element vector that gives the location and size of the component relative
to its parent container in the form [left bottom width height]
.
pos = setpixelposition(
,
where c
,position
,isrecursive
)isrecursive
is true
, sets the component position
relative to the parent figure. The default for isrecursive
is
false
, which sets the position relative to its immediate parent
container.
Examples
Input Arguments
More About
Version History
Introduced in R2007a