Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

Simulink.SubSystem.deleteContents - Delete contents of subsystem

Syntax

Simulink.SubSystem.deleteContents(subsys)

Description

Simulink.SubSystem.deleteContents(subsys) 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.

Inputs

subsys

Subsystem name or handle

Example

Delete the graphical contents of Controller, including all nested subsystems:

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

See Also

Simulink.BlockDiagram.copyContentsToSubSystem | Simulink.BlockDiagram.deleteContents | Simulink.SubSystem.convertToModelReference | Simulink.SubSystem.copyContentsToBlockDiagram

How To

  


Related Products & Applications

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

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