Main Content

Simulink.SubsystemReference.convertAllSubsystemReferenceBlocksToSubsystem

Convert all Subsystem Reference blocks to Subsystem blocks

Since R2022a

    Description

    Simulink.SubsystemReference.convertAllSubsystemReferenceBlocksToSubsystem(mdl) converts all Subsystem Reference blocks in the model mdl to Subsystem blocks.

    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 all the Subsystem Reference blocks in the model to Subsystem blocks.

    Simulink.SubsystemReference.convertAllSubsystemReferenceBlocksToSubsystem...
        ("slexModelUsingReusableSS");

    Input Arguments

    collapse all

    Path or handle of a model, specified as a string scalar or character vector.

    Example: "slexModelUsingReusableSS"

    Data Types: string | char

    Version History

    Introduced in R2022a