How to replace one subsystem with other ..

조회 수: 7 (최근 30일)
Harsh kumar
Harsh kumar 2021년 5월 3일
댓글: Harsh kumar 2021년 5월 6일
I have a unit model with some inports and outports .My task is to replace top level subsystem inside this unit model (except inports and outports) with another subsytem in another model using its path through mscript. Can anyone suggest me some sort of commands or a script through which I can accomplish this task.

채택된 답변

Fangjun Jiang
Fangjun Jiang 2021년 5월 3일
replace_block()
see examples in doc
  댓글 수: 3
Fangjun Jiang
Fangjun Jiang 2021년 5월 4일
It works with subsystem block. Replace one subsystem block with another subsystem block. Of course, both blocks shall have identical ports.
Harsh kumar
Harsh kumar 2021년 5월 6일
it worked..Thanks for the help..

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Subsystems에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by