Simulink Reference    
delete_line

Delete a line from a Simulink system.

Syntax

Description

delete_line('sys', 'oport', 'iport') deletes the line extending from the specified block output port 'oport' to the specified block input port 'iport'. 'oport' and 'iport' are strings consisting of a block name and a port identifier in the form 'block/port'. Most block ports are identified by numbering the ports from top to bottom or from left to right, such as 'Gain/1' or 'Sum/2'. Enable, Trigger, and State ports are identified by name, such as 'subsystem_name/Enable', 'subsystem_name/Trigger' , or
'Integrator/State'.

delete_line('sys', [x y]) deletes one of the lines in the system that contains the specified point (x,y), if any such line exists.

Example

This command removes the line from the mymodel system connecting the Sum block to the second input of the Mux block.

See Also


  delete_block delete_param