MATLAB Help Center
Get all tabs in Simulation Data Inspector
Since R2026b
allTabs = getAllTabs(tabGroup)
allTabs = getAllTabs(tabGroup) returns an array of Simulink.sdi.Tab objects corresponding to the open tabs in the Simulation Data Inspector.
allTabs
tabGroup
Simulink.sdi.Tab
example
collapse all
First, access the Simulink.sdi.TabGroup object. Then, get the Tab objects corresponding to all open tabs in the Simulation Data Inspector.
Simulink.sdi.TabGroup
Tab
tabGroup = Simulink.sdi.TabGroup; allTabs = getAllTabs(tabGroup);
allTabs = 1×3 Tab array with properties: Name Color Index IsActive
To access a specific tab in the array, use indexing.
tab2 = allTabs(2)
tab2 = Tab with properties: Name: 'Tab2' Color: 'none' Index: 2 IsActive: 0
Collection of tabs open in the Simulation Data Inspector, specified as a Simulink.sdi.TabGroup object.
All open tabs in the Simulation Data Inspector, specified as an array of Simulink.sdi.Tab objects.
Introduced in R2026b
addTab
getTabByName
getTabByIndex
getActiveTab
closeTab
setActiveTab
closeOtherTabs
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office