Main Content

getAllTabs

R2026b

Get all tabs in Simulation Data Inspector

Since R2026b

    Description

    allTabs = getAllTabs(tabGroup) returns an array of Simulink.sdi.Tab objects corresponding to the open tabs in the Simulation Data Inspector.

    example

    Examples

    collapse all

    First, access the Simulink.sdi.TabGroup object. Then, get the Tab objects corresponding to all open tabs in the Simulation Data Inspector.

    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

    Input Arguments

    collapse all

    Collection of tabs open in the Simulation Data Inspector, specified as a Simulink.sdi.TabGroup object.

    Output Arguments

    collapse all

    All open tabs in the Simulation Data Inspector, specified as an array of Simulink.sdi.Tab objects.

    Version History

    Introduced in R2026b