Main Content

saveAsModel

(Not recommended) Save architecture of component to separate model

The saveAsModel function is not recommended. Use the createArchitectureModel function instead. For more information, see Compatibility Considerations.

Description

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

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.

Name of model, specified as a character vector or string.

Example: "exMobileRobot"

Data Types: char | string

Version History

Introduced in R2019a

collapse all

R2021b_plus: saveAsModel function is not recommended

The saveAsModel function is not recommended. Use the createArchitectureModel function instead.