Delete contents of block diagram
Simulink.BlockDiagram.deleteContents(
bdiag
)
Simulink.BlockDiagram.deleteContents(
deletes
the contents of the block diagram bdiag
)bdiag
.
The function affects only blocks, lines, and annotations. The block
diagram must have already been loaded.
|
Block diagram name or handle |
Delete the graphical content of an open block diagram named f14
,
including all subsystems:
load_system('f14') Simulink.BlockDiagram.deleteContents('f14');
Simulink.BlockDiagram.copyContentsToSubsystem
| Simulink.SubSystem.convertToModelReference
| Simulink.SubSystem.copyContentsToBlockDiagram
| Simulink.SubSystem.deleteContents