Main Content

getAllReferencedSubsystemBlockDiagrams

Returns all the child Subsystem block diagrams for a given block diagram

Since R2022a

Description

Simulink.SubsystemReference.getAllReferencedSubsystemBlockDiagrams(path) returns all the child Subsystem block diagrams for a given block diagram.

Input Arguments

expand all

The path of the system or block diagram is specified as string. You can also specify the handle of the system or block diagram.

Output Arguments

expand all

An array consisting of the name of the child blocks is returned. The output doesn't contain duplicates. So, if a subsystem-block diagram is referred twice, it appears only once in the output. The type of the output(name or handle) is same as the type of the input

Examples

>> Simulink.SubsystemReference.
getAllReferencedSubsystemBlockDiagrams('mdl2')
ans =

  2×1 cell array

    {'ssref1'}
    {'ssref2'}

Version History

Introduced in R2022a