How to discover all submodels within a simulink model programmatically ?

13 次查看(过去 30 天)
I would like to find all models contained in a simulink model programmatically ?
Is there a way to do that for instance with the get_param(model_name, argument) function ?
There is a 'Parent' argument but no 'Children' argument for this function

采纳的回答

Fangjun Jiang
Fangjun Jiang 2021-1-14
Using the example model 'f14'. Play with some other options of find_system()
f14;
SubSysBlocks=find_system('f14','BlockType','SubSystem')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programmatic Model Editing 的更多信息

产品


版本

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by