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.
댓글 수: 0
채택된 답변
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
2022년 5월 9일
If doing it interactively in Simulink GUI, it can only be done one subsystem block at a time.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!