How do I copy the ports of a Simulink model

4 Ansichten (letzte 30 Tage)
Laurentiu  Badea
Laurentiu Badea am 14 Mär. 2018
Bearbeitet: Laurentiu Badea am 15 Mär. 2018
Hello, I want to copy the in/out ports of a Simulink model to another new Simulink model using a Matlab Script.
Basically, I want to open a model, view its ports, and copy ONLY those ports to another model which will be created in the same Matlab Script.

Antworten (1)

Mark McBroom
Mark McBroom am 15 Mär. 2018
Use find_system(), new_system(), add_block() and save_system()
  1 Kommentar
Laurentiu  Badea
Laurentiu Badea am 15 Mär. 2018
Bearbeitet: Laurentiu Badea am 15 Mär. 2018
Yes, but the problem is that I want to copy the ports from one system to another, without copying other blocks. The in/out ports are the only parts I'm interested in copying.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Programmatic Model Editing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by