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 the example. Then, open the f14 model.

open_system('f14')

Delete the graphical content of the f14/Controller subsystem.

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