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

Note

This function does not delete library blocks in a subsystem.

Input Arguments

subsys

Subsystem name or handle

Examples

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

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

Introduced in R2007a