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 CenterFile 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