Main Content

convertSubsystemToSubsystemReference

Converts a Subsystem block to subsystem reference

Since R2022a

Description

Simulink.SubsystemReference.convertSubsystemToSubsystemReference(path, name) converts a Subsystem block to subsystem reference. The converted subsystem reference block takes the name given in name. It returns true, if the conversion is successful. False otherwise.

Input Arguments

expand all

The path of the Subsystem that must be converted to subsystem reference is specified as string. You can also specify the handle of the Subsystem.

Name for the converted subsystem is specified as string.

Examples

Simulink.SubsystemReference.convertSubsystemToSubsystemReference('mdl1/Subsystem2','ssref4')
ans =

  logical

   1

Version History

Introduced in R2022a