Main Content

saveAsModel

Save architecture to separate model

Description

example

saveAsModel(component,modelName) saves the architecture of the component to a separate architecture model and references the model from this component.

Examples

collapse all

Save the component robotComp in Robot.slx and reference the model.

saveAsModel(robotComp,'Robot');

Input Arguments

collapse all

Architecture component, specified as a systemcomposer.arch.Component object. The component must have an architecture with definition type composition. For other definition types, this function gives an error.

Model name, specified as a character vector.

Data Types: char

Introduced in R2019a