Simulink.BlockDiagram.copyContentsToSubsystem
Copy graphical contents from system to empty subsystem
Description
Simulink.BlockDiagram.copyContentsToSubsystem(
copies the blocks, lines, and annotations of the specified system to the specified
subsystem. It does not affect nongraphical information such as configuration
sets.sys
,subsys
)
Use this function to convert a referenced model derived from an atomic subsystem into an atomic subsystem that is equivalent to the original subsystem.
To use this function:
The specified system must be loaded in memory.
The specified subsystem must be loaded in memory.
The specified system must not contain the specified subsystem.
The specified subsystem must not contain any blocks or lines. Other types of information can exist in the subsystem and are unaffected by the function. To delete the graphical content of the destination subsystem, use
Simulink.SubSystem.deleteContents
.
Examples
Input Arguments
Version History
Introduced in R2007a