Skip to Main Content Skip to Search
Product Documentation

delete_line - Delete line from Simulink system

Syntax

delete_line('sys', 'oport', 'iport')
delete_line('sys', [x y])
delete_line(handle)

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, Integrator/State, or if_action_subsystem_name/Ifaction.

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.

delete_line(handle) deletes the line specified by the handle.

Examples

For the model vdp, remove the line connecting the Product block with the Gain block.

delete_line('vdp', 'Product/1', 'Mu/1')

Remove a line using a line handle.

h = add_line('vdp', 'Product/1', 'Mu/1')
delete_line(h)

See Also

add_line

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS