Main Content

Simulink.SubSystem.deleteContents

Delete contents of subsystem

Description

example

Simulink.SubSystem.deleteContents(subsys)deletes the blocks, lines, and annotations in the specified subsystem, which must be loaded in memory.

Examples

collapse all

Open thef14model.

open_system('f14')

Delete the graphical contents from thef14/Controllersubsystem.

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

Input Arguments

collapse all

Subsystem block path or handle, specified as a character vector, string scalar, or numeric scalar.

Data Types:double|char|string

Version History

Introduced in R2007a