Create Simulink model and link component to it
createSimulinkBehavior(component,modelName)
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.
component
modelName
collapse all
Create a Simulink behavior model for the component robotComp in Robot.slx and link the component to the model.
robotComp
Robot.slx
createSimulinkBehavior(robotComp,'Robot');
Architecture component with no children, specified as a systemcomposer.arch.Component object.
systemcomposer.arch.Component
Model name of the Simulink model created by this function, specified as a character vector.
Example: 'Robot'
'Robot'
Data Types: char
char
inlineComponent | linkToModel | saveAsModel
inlineComponent
linkToModel
saveAsModel