Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan 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

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 in any order as Name1,Value1,...,NameN,ValueN.

Example: 'Title','Options' specifies that the tab title is Options.
  • For information on Name-Value pair arguments you can use with tabs in traditional figure windows, see Uitab Properties.

  • For information on Name-Value pair arguments you can use with tabs in UI figure windows, see Tab Properties

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.

Introduced in R2014b

Was this topic helpful?