www.gusucode.com > simulink 案例源码程序 matlab代码 > simulink/DeleteLineRemoveLineInsideSubsystemUsingBlockPortNamesExample.m
%% Remove Line Inside Subsystem Using Block Port Names % For the model |sldemo_househeat|, remove the line, inside the Heater subsystem, % connecting the first output of the HeatGain block to the second input % of the Heater Switch block. %% load_system('sldemo_househeat'); delete_line('sldemo_househeat/Heater','HeatGain/1','Heater Switch/2');