createSimulinkBehavior

Create Simulink model and link component to it

Description

example

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

Architecture component with no children, specified as a systemcomposer.arch.Component object.

Model name of the Simulink model created by this function, specified as a character vector.

Example: 'Robot'

Data Types: char

Introduced in R2019a