Exporting the model browser list of subsystems - Simulink

5 views (last 30 days)
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!

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 5 Oct 2018
find_system(bdroot,'Blocktype','SubSystem')
check for other options of find_system
  3 Comments
Fangjun Jiang
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' }

Sign in to comment.

More Answers (0)

Categories

Find more on Programmatic Model Editing in Help Center and File Exchange

Products


Release

R2017b

Community Treasure Hunt

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

Start Hunting!