How do I create an array containing the system layout of a Simulink model?

Simulink has a model viewer which allows one to view all the levels of a Simulink model. I want to package that into an array in order to automate a report writing process. Does anyone know of a command in Matlab that will allow me to capture the Simulink model hierarchy in an array?

 Accepted Answer

Hierarchy=find_system('ModelName','LookUndermasks','All','FollowLinks','on','BLockType','SubSystem')

More Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Asked:

on 23 Aug 2016

Commented:

on 24 Aug 2016

Community Treasure Hunt

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

Start Hunting!