Programmatically connect two subsystems
问题 I'm trying to build a complex model programmatically reusing some custom blocks/models I have developed before, but I cannot manage to connect two PMC_Port This is what I have: % Main system sys_name = 'model'; sys = new_system(sys_name) open_system(sys_name) load_system('circuit_cell') % Subsystem with 6 PMC_Port elements % stored in circuit_cell.mdl file % Add cell #1 add_block('built-in/Subsystem', [sys_name '/cell1']) Simulink.BlockDiagram.copyContentsToSubSystem('circuit_cell', [sys_name