Delete contents of subsystem
Simulink.SubSystem.deleteContents(
subsys
)
Simulink.SubSystem.deleteContents(
deletes
the contents of the subsystem subsys
)subsys
. The
function affects only blocks, lines, and annotations. The subsystem
must have already been loaded.
This function does not delete library blocks in a subsystem.
|
Subsystem name or handle |
Delete the graphical contents of Controller
, including all nested
subsystems:
load_system('f14'); Simulink.SubSystem.deleteContents('f14/Controller');
Simulink.BlockDiagram.copyContentsToSubsystem
| Simulink.BlockDiagram.deleteContents
| Simulink.SubSystem.convertToModelReference
| Simulink.SubSystem.copyContentsToBlockDiagram