Link component to a model


modelHandle = linktoModel(component,modelName) links from the component to a model.


collapse all

Save the component robotcomp in the architecture model Robot.slx and reference it from another component, robotArm so that robotArm uses the architecture of robotcomp.

linkToModel(robotArm, 'Robot');

Input Arguments

collapse all

The component must have no children.

Data Types: systemcomposer.arch.Component

An existing model that define the architecture or behavior of the component.

Data Types: char

Output Arguments

collapse all

Introduced in R2019a