Skip to Main Content Skip to Search
Product Documentation

Simulink.BlockDiagram.deleteContents - Delete contents of block diagram

Syntax

Simulink.BlockDiagram.deleteContents(bdiag)

Description

Simulink.BlockDiagram.deleteContents(bdiag) deletes the contents of the block diagram bdiag. The block diagram must have already been loaded. The function affects only blocks, lines, and annotations. It does not affect nongraphical information such as configuration sets.

Input Arguments

bdiag

Block diagram name or handle

Examples

Delete the graphical content of an open block diagram named f14, including all subsystems:

Simulink.BlockDiagram.deleteContents('f14');

See Also

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

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-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS