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

4 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 6 Mai 2022
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 Kommentare
Fangjun Jiang
Fangjun Jiang am 9 Mai 2022
If doing it interactively in Simulink GUI, it can only be done one subsystem block at a time.
Neal Chaudhuri
Neal Chaudhuri am 10 Mai 2022
Aah, that's a bummer. Thanks for the answer though, I really appreciate it. :)

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by