Exporting the model browser list of subsystems - Simulink
5 views (last 30 days)
Show older comments
We need to divide and conquer a review of a fairly large model library. Is there a way to generate a list of subsystems? In the past I'd screenshot the Model Browser and paste in Excel but I'm sure there's an easier way. Thanks in advance!
0 Comments
Accepted Answer
Fangjun Jiang
on 5 Oct 2018
find_system(bdroot,'Blocktype','SubSystem')
check for other options of find_system
3 Comments
Fangjun Jiang
on 18 Dec 2024
This is in R2022b. If it does not work in R2017b, then temorarily save the library file to a model file.
>> open_system('simulink')
>> find_system('simulink','Blocktype','SubSystem')
ans =
152×1 cell array
{'simulink/Additional Math↵& Discrete' }
{'simulink/Additional Math↵& Discrete/Additional↵Discrete' }
{'simulink/Additional Math↵& Discrete/Additional↵Discrete/Fixed-Point↵State-Space' }
More Answers (0)
See Also
Categories
Find more on Programmatic Model Editing 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!