Main Content

Simulink.SubsystemReference.convertSubsystemReferenceBlockToSubsystem

Convert Subsystem Reference block to Subsystem block

Since R2022a

    Description

    Simulink.SubsystemReference.convertSubsystemReferenceBlockToSubsystem(ssRefBlock) converts the Subsystem Reference block ssRefBlock in a model to a Subsystem block.

    example

    Examples

    collapse all

    The model slexModelUsingReusableSS uses three instances of the subsystem file slexReusableSS named Double Input, Int32 Input, and Int8 Input.

    open_system("slexModelUsingReusableSS");

    Convert the Subsystem Reference block Double Input in the model to a Subsystem block.

    Simulink.SubsystemReference.convertSubsystemReferenceBlockToSubsystem...
        ("slexModelUsingReusableSS/Double Input");

    Input Arguments

    collapse all

    Path or handle of a Subsystem Reference block in a model, specified as a string scalar or character vector.

    Example: "slexModelUsingReusableSS/Double Input"

    Data Types: string | char

    Version History

    Introduced in R2022a