Main Content


Create Simulink model and link component to it



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.


collapse all

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


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