List of all subsystem(include Model reference) in each layer from model

4 ビュー (過去 30 日間)
galaxy
galaxy 2020 年 7 月 16 日
回答済み: maiaL 2020 年 7 月 16 日
Dear bros,
I want to ask how to list List of all subsystem(include Model reference) in each layer from model.
Expected result is struct or cell or any type for easy to get.
Model
- Subystem_1
- sub Subystem_1
- Block_1
- Block_2
- Block_3
. . .
- sub Subystem_2
- sub Subystem_3
. . .
- Subystem_2
- sub Subystem_1
- sub Subystem_2
- sub Subystem_3
. . .
- Subystem_3
. . .
Could anyone help me?
Thank you so much

回答 (1 件)

maiaL
maiaL 2020 年 7 月 16 日
This could be a starting point:
SubsystemsList=find_system('mdlName','SearchDepth',20,'LookUnderMasks','on','FollowLinks','on','LookInsideSubsystemReference','on','BlockType','Subsystem');

カテゴリ

Find more on Subsystems in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by