How to replace one subsystem with other ..

9 visualizaciones (últimos 30 días)
Harsh kumar
Harsh kumar el 3 de Mayo de 2021
Comentada: Harsh kumar el 6 de Mayo de 2021
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.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by