uitab
Create tab container.
📝Syntax
h = uitab()
h = uitab(parent)
h = uitab(..., propertyName, propertyValue)
📥Input Arguments
Parameter Description
parent parent container (uifigure, figure, uipanel, uitab, uibuttongroup, uigridlayout).
propertyName, propertyValue name-value pairs.
📤Output Arguments
Parameter Description
h container object.
📄Description

t = uitab creates a tab inside a tab group and returns the Tab object. If the given parent is not a TabGroup, an implicit uitabgroup is created. Main properties: Title, BackgroundColor, ForegroundColor, Scrollable. The tab geometry is managed by the parent TabGroup (read-only Position).

💡Examples
Captured UI component for the help image.
f = uifigure('Visible', 'off', 'Name', 'Tabs', 'Position', [100 100 420 260]);
tg = uitabgroup(f, 'Position', [55 40 310 180]);
t = uitab(tg, 'Title', 'Data');
uitab(tg, 'Title', 'Options');
uibutton(t, 'Text', 'Apply', 'Position', [25 45 100 28]);
drawnow();
Example illustration
uitab
f = uifigure();
tg = uitabgroup(f);
t = uitab(tg, 'Title', 'Settings');
b = uibutton(t, 'Text', 'Apply', 'Position', [20 20 100 22]);
🔗See Also
uifigure
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub