How to discover all submodels within a simulink model programmatically ?

12 ビュー (過去 30 日間)
p fontaine
p fontaine 2021 年 1 月 14 日
回答済み: Fangjun Jiang 2021 年 1 月 14 日
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
  2 件のコメント
Fangjun Jiang
Fangjun Jiang 2021 年 1 月 14 日
編集済み: Fangjun Jiang 2021 年 1 月 14 日
define "submodels". Model references, subsystems or something else? "parent" refers to parent subsystem
p fontaine
p fontaine 2021 年 1 月 14 日
I mean subsystems

サインインしてコメントする。

採用された回答

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 Center および File ExchangeProgrammatic Model Editing についてさらに検索

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by