Simulink.SubSystem.deleteContents - Delete contents of subsystem

Syntax

Simulink.SubSystem.deleteContents(subsys)

Arguments

subsys

Subsystem name or handle

Description

Simulink.SubSystem.deleteContents deletes the contents of the subsystem subsys. The subsystem must have already been loaded. The function affects only blocks, lines, and annotations; it does not affect nongraphical information such as configuration sets.

Example

If an open block diagram named f14 has a subsystem named Controller, the following code deletes the graphical contents of Controller, including all nested subsystems. Nongraphical information in Controller remains unchanged.

Simulink.SubSystem.deleteContents('f14/Controller');

See Also

Simulink.BlockDiagram.copyContentsToSubSystem

Simulink.BlockDiagram.deleteContents

Simulink.SubSystem.convertToModelReference

Simulink.SubSystem.copyContentsToBlockDiagram

  


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