How to replace one subsystem with other ..

7 views (last 30 days)
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.

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 3 May 2021
replace_block()
see examples in doc
  3 Comments
Fangjun Jiang
Fangjun Jiang on 4 May 2021
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 on 6 May 2021
it worked..Thanks for the help..

Sign in to comment.

More Answers (0)

Categories

Find more on Programmatic Model Editing in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!