MATLAB 帮助中心
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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处