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 function affects only blocks, lines, and annotations. The block diagram must have already been loaded.

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');
Was this topic helpful?