getpixelposition
Get component position in pixels
Description
pos = getpixelposition(
returns the position
in pixels of the component specified by c
)c
. MATLAB® returns the position as a four-element vector that specifies the location and
size of the component relative to its parent container in the form [left bottom
width height]
.
pos = getpixelposition(
,
where c
,isrecursive
)isrecursive
is true
, returns the component
position relative to the parent figure. The default for isrecursive
is
false
, which returns the position relative to its immediate parent
container.
Examples
Input Arguments
More About
Version History
Introduced in R2007a