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

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

추가 답변(0개)

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by