linkToModel

Link component to a model

Description

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

Examples

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.

saveAsModel(robotcomp,'Robot');
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