User`s guide

11 Lay Out a Programmatic GUI
figure and 10 percent of the figure height from the bottom. As the figure is
resized the panel retains these proportions.
The following statements add two push buttons to the panel with handle
ph.ThePosition property of each component within a panel is interpreted
relative to the panel.
pbh1 = uicontrol(ph,'Style','pushb utton','String','Button 1',...
'Units','normalized',...
'Position',[.1 .55 .8 .3]);
pbh2 = uicontrol(ph,'Style','pu shbutton','String','But ton 2',...
'Units','normalized',...
'Position',[.1 .15 .8 .3]);
See “Push Button” on page 11-25 for more information about adding push
buttons.
Button Group
The followi ng statement creates a button group with handle bgh. Use a button
group to exclusively manage radio buttons and toggle buttons.
bgh = uibuttongroup('Parent',fh,'T itle','My Button Gr oup',...
'Position',[.1 .2 .8 .6]);
11-36