Update subsystem's Block parameters for all the subsytems in a model.

1 回表示 (過去 30 日間)
Neal Chaudhuri
Neal Chaudhuri 2022 年 5 月 6 日
コメント済み: Neal Chaudhuri 2022 年 5 月 10 日
There are more than a few subsystems in my model, and I would to check "treat as Atomic model" in block parameters for all of them, at once.

採用された回答

Fangjun Jiang
Fangjun Jiang 2022 年 5 月 6 日
h=find_system('ModelName','FindAll','on','BlockType','SubSystem')
set(h,'TreatAsAtomicUnit','On')
You might need to refine your search to avoid unintended SubSystem blocks.
  3 件のコメント
Fangjun Jiang
Fangjun Jiang 2022 年 5 月 9 日
If doing it interactively in Simulink GUI, it can only be done one subsystem block at a time.
Neal Chaudhuri
Neal Chaudhuri 2022 年 5 月 10 日
Aah, that's a bummer. Thanks for the answer though, I really appreciate it. :)

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNaming Conventions についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by