f = uifigure()
f = uifigure(Name, Value)
| Parameter | Description |
|---|---|
| Name, Value | Figure property name-value pairs. uifigure applies MenuBar = 'none', ToolBar = 'none', NumberTitle = 'off', Resize = 'on', WindowStyle = 'normal', and a default 560-by-420 pixel size before user-supplied properties. |
| Parameter | Description |
|---|---|
| f | Graphics figure handle. |
uifigure creates a graphics figure configured for interface-oriented dialogs and controls. The returned handle can be used with get, set, close, delete, and as the parent for UI dialog functions.
Supported properties are the figure properties available in Nelson, including 'Name', 'Position', 'Visible', 'WindowStyle', 'Resize', 'Color', 'Tag', and callback properties.
f = uifigure('Visible', 'off', 'Name', 'Results', 'Position', [100 100 420 260]);
uilabel(f, 'Text', 'Result:', 'Position', [80 150 90 24]);
uibutton(f, 'Text', 'Run', 'Position', [80 95 100 30]);
uislider(f, 'Position', [210 110 150 3], 'Value', 55);
drawnow();
f = uifigure('Name', 'Results', 'WindowStyle', 'modal');
f.Name
close(f)
| Version | Description |
|---|---|
| 2.0.0 | Introduced app-style UI figure. |