Main Content

Simulink.sdi.TabGroup

R2026b

Container for tabs in the Simulation Data Inspector

Since R2026b

    Description

    A Simulink.sdi.TabGroup object is a container for the Simulink.sdi.Tab objects associated with the tabs in the current Simulink Data Inspector session. Use the TabGroup object to create tabs or access tabs to modify them. When you add, close, or reorder tabs, these changes are automatically reflected in the Simulink.sdi.TabGroup object.

    Creation

    The software creates a Simulink.sdi.Tab object for each tab in the Simulation Data Inspector. The Simulink.sdi.TabGroup object is a container for these Tab objects.

    Description

    allTabs = Simulink.sdi.TabGroup gets the Simulink.sdi.TabGroup object, which contains a Simulink.sdi.Tab object for each tab in the Simulation Data Inspector.

    example

    Properties

    expand all

    List of tabs in the Simulation Data Inspector, returned as an array of Simulink.sdi.Tab objects. The leftmost tab corresponds to the first entry in this array and the rightmost tab corresponds to the last entry. The Index property of each Tab object matches the index of the object in this array.

    Object Functions

    addTabAdd new Simulation Data Inspector tab
    getAllTabsGet all tabs in Simulation Data Inspector
    getTabByNameGet Simulation Data Inspector tab by name
    getTabByIndexGet Simulation Data Inspector tab by positional index
    getActiveTabGet active Simulation Data Inspector tab

    Examples

    collapse all

    Get the Simulink.sdi.TabGroup object that contains a Simulink.sdi.Tab object for each open tab in the Simulation Data Inspector.

    allTabs = Simulink.sdi.TabGroup
    allTabs = 
    
      TabGroup with properties:
    
        TabsList: [1×3 Simulink.sdi.Tab]

    In this example, there are three open tabs in the Simulation Data Inspector. The allTabs variable automatically updates when you add or close tabs.

    Version History

    Introduced in R2026b