createSimulinkBehavior

Create a Simulink model and link component to it

Description

createSimulinkBehavior(component,modelName) creates a new Simulink® model with the same interface as the component and links the component to the new model. This method works only if the component has no children.

Examples

collapse all

Create a Simulink behavior model for the component robotcomp in Robot.slx and link the component to the model.

createSimulinkBehavior(robotcomp,'Robot');

Input Arguments

collapse all

The component must have no children.

Data Types: systemcomposer.arch.Component

Name of the Simulink model created by this function.

Data Types: char

Introduced in R2019a