How to replace one subsystem with other ..

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.

 Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 3 Mai 2021

0 Stimmen

replace_block()
see examples in doc

3 Kommentare

Harsh kumar
Harsh kumar am 4 Mai 2021
with replace_block I am able to replace only a particular type of block but my task is to replace whole subsystem i.e. all the blocks inside a subsystem. Please tell me how to do that?
Fangjun Jiang
Fangjun Jiang am 4 Mai 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 am 6 Mai 2021
it worked..Thanks for the help..

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by