User`s guide

R2010b
12-20
Creating Graphical User Interfaces (GUIs)
Functions and Function Elements Being Removed
The uitabgroup and uitab GUI components are undocumented features that provide
tabbed panels to GUIs that you create programmatically. The current method of calling
these functions and some of their properties will change in a future release. MathWorks
has never supported their use. However, if your MATLAB code includes these functions,
read the following information:
Function or Function
Element Name
What
Happens
When You
Use the
Function or
Element?
Use This Instead Compatibility Considerations
uitabgroup('v0',...)
uitab('v0',...)
Warns uitabgroup(...)
uitab(...)
Using the 'v0' argument generates
a warning, but the object is created.
uitabgroup property
SelectionChangeFcn
Not
recommended
SelectionChange
Callback
Event data for the callback is still
a struct with fields OldValue and
NewValue but those values are now
uitab handles, not uitab indexes.
uitabgroup property
SelectedIndex
Not
recommended
SelectedTab Both properties still exist,
but replace instances of
SelectedIndex (an integer tab
index) with SelectedTab (a handle
to a uitab object).
uitabgroup property
BackgroundColor
Not
recommended
no replacement uitabgroup now uses the default
uicontrol background color.
uitabgroup event
SelectionChanged
Errors SelectionChange
event
Event name changed to be
consistent with other components.
Event data is still a struct with
fields OldValue and NewValue
but those values are now uitab
handles, not uitab indexes.
You should update any code that you maintain which uses the undocumented
uitabgroup and uitab functions to conform to the new standards, as described in the