Create a uipanel object and return a handle to it.
uipanels are used as containers to group other uicontrol objects.
If parent is omitted then a uipanel for the current figure is created. If no figure is available, a new figure is created first.
If parent is given then a uipanel relative to parent is created.
Any provided property value pairs will override the default values of the created uipanel object.
Uipanel properties are documented at ‘Uipanel Properties’.
Examples:
% create figure and panel on it f = figure; p = uipanel ("title", "Panel Title", "position", [.25 .25 .5 .5]); % add two buttons to the panel b1 = uicontrol ("parent", p, "string", "A Button", "position",[18 10 150 36]); b2 = uicontrol ("parent", p, "string", "Another Button", "position",[18 60 150 36]);
See also: figure, uicontrol.
Package: octave