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.
Neal Chaudhuri
Neal Chaudhuri 2022년 5월 10일
Aah, that's a bummer. Thanks for the answer though, I really appreciate it. :)

댓글을 달려면 로그인하십시오.

추가 답변 (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