Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

uitab

Create tabbed panel

Syntax

t = uitab
t = uitab(parent)
t = uitab(___,Name,Value)

Description

t = uitab creates a tab in an existing tab group within a traditional figure and returns the tab object. If there is no tab group within a traditional figure available, then MATLAB® creates a new tab group in a traditional figure.

t = uitab(parent) creates a tab and specifies the parent TabGroup object for the tab.

example

t = uitab(___,Name,Value) specifies tab properties using one or more Name,Value pair arguments. Use this option with any of the input argument combinations in the previous syntaxes.

Examples

collapse all

Create a traditional figure containing a tab group and two tabs.

f = figure;
tabgp = uitabgroup(f,'Position',[.05 .05 .3 .8]);
tab1 = uitab(tabgp,'Title','Type of Signal');
tab2 = uitab(tabgp,'Title','Plot Options');

Get the title of the first uitab.

tab1.Title
ans =

Type of Signal

Create a UI figure containing a tab group and two tabs.

fig = uifigure;
tabgp = uitabgroup(fig,'Position',[100,100,250,210]);
tab1 = uitab(tabgp,'Title','Type of Signal');
tab2 = uitab(tabgp,'Title','Plot Options');

Get the title of the first tab.

tab1.Title
ans =

Type of Signal

Input Arguments

collapse all

Parent object of tab, specified as a TabGroup object. The parent can be a TabGroup within a Figure created with the figure function or the uifigure function.

Name-Value Pair Arguments

Example: 'Title','Options' specifies that the tab title is Options.

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside single quotes (' '). You can specify several name and value pair arguments as Name1,Value1,...,NameN,ValueN.

  • For a list of properties available for GUIDE, or for creating apps with the figure function, see Tab Properties for GUIDE.

  • For a list of properties available for App Designer, or for creating apps with the uifigure function, see Tab Properties for App Designer.

More About

collapse all

traditional figure

A traditional figure is one that MATLAB creates when you use GUIDE or the figure function. For more information on the difference between traditional figures and UI figures, see Graphics Support in App Designer.

UI figure

A UI figure is one that MATLAB creates when you use App Designer or the uifigure function. For more information on the difference between traditional figures and UI figures, see Graphics Support in App Designer.

See Also

Functions

Properties

Introduced in R2014b

Was this topic helpful?