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

1 次查看(过去 30 天)
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by