How do I copy the ports of a Simulink model

2 ビュー (過去 30 日間)
Laurentiu  Badea
Laurentiu Badea 2018 年 3 月 14 日
編集済み: Laurentiu Badea 2018 年 3 月 15 日
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.

回答 (1 件)

Mark McBroom
Mark McBroom 2018 年 3 月 15 日
Use find_system(), new_system(), add_block() and save_system()
  1 件のコメント
Laurentiu  Badea
Laurentiu Badea 2018 年 3 月 15 日
編集済み: Laurentiu Badea 2018 年 3 月 15 日
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.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeProgrammatic Model Editing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by