User`s guide

Add Components to a Programmatic GUI
Panel
The following statement creates a panel w ith handle ph.Useapaneltogroup
components in the GUI.
ph = uipanel('Parent',fh,'Title',' My Panel',...
'Position',[.25 .1 .5 .8]);
The Parent property specifies the handle fh of the parent figure. You can also
specify the parent as a panel or button group.
The
Title property labels the panel as My Panel.
The statement assumes the default
TitlePosition property, which is
lefttop.
The
Units property is used to interpret the Position property. This panel
assumes the default
Units property, normalized. This enables the panel to
resize automatically if the figure is resized. See documentation for the figure
ResizeFcn property for more inform ation about resizing.
The
Position property specifies the location and size of the panel. In this
example, the panel is 50 percent of the width of the figure and 80 percent of
its height. It is positio ned 25 percent of the f igure width from the left of the
11-35