Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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:

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

Introduced in R2007a

Was this topic helpful?