主要内容

closeOtherTabs

R2026b

Close all but specified tab in Simulation Data Inspector

Since R2026b

    Description

    closeOtherTabs(tabObj) closes all tabs in the Simulation Data Inspector except for the tab specified by the Simulink.sdi.Tab object tabObj.

    example

    Examples

    collapse all

    First, get the Simulink.sdi.Tab corresponding to the tab you want to keep open. Then, close the remaining tabs.

    tabGroup = Simulink.sdi.TabGroup;
    myTab = getTabByName(tabGroup,"My Tab");
    closeAllOthers(myTab)

    Input Arguments

    collapse all

    Tab to keep open while closing all other tabs, specified as a Simulink.sdi.Tab object.

    Version History

    Introduced in R2026b