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.

 采纳的回答

replace_block()
see examples in doc

3 个评论

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?
It works with subsystem block. Replace one subsystem block with another subsystem block. Of course, both blocks shall have identical ports.
it worked..Thanks for the help..

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Programmatic Model Editing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by