Filter löschen
Filter löschen

Create a Simulink model using command Lines

1 Ansicht (letzte 30 Tage)
Ibrahim Ben Mrad
Ibrahim Ben Mrad am 12 Apr. 2022
Kommentiert: Ibrahim Ben Mrad am 12 Apr. 2022
Hello!
I'm trying to create a Simulink model using command Lines. So my goal is to connect a subsystem to a inductor inside a for loop or more precisely connect the right port of the subsystem to the left port of the inductor inside a for loop (files attached)
My question is: how can i connect a susbsystem to a inductor using command lines?
thanks in advance

Antworten (1)

Fangjun Jiang
Fangjun Jiang am 12 Apr. 2022
  6 Kommentare
Fangjun Jiang
Fangjun Jiang am 12 Apr. 2022
add_line(gcs,'HF1/RConn1','Inductor/LConn1')
Ibrahim Ben Mrad
Ibrahim Ben Mrad am 12 Apr. 2022
yes!
thx a lot it worked for me
again with strcat because of the for-Loop
regards

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