in Simulink, add line from line_node to block with command?
이전 댓글 표시
In Simulink, I want to add 'B4' and connect to 'A' with command, I want it to look like bellow:

I tried the code of add_line(gcs, 'A/1', 'B4/1', 'autorouting', 'on'). but it looks like bellow:

Then my new idea is add_line from 'P1_position' to 'B4'. while I do not know how to get the 'P1_position' or 'Line3_length'(to calcute P1_position).

Thanks to all viewing/answering my question!
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

