saveAsModel

Save the Architecture to a separate model

Description

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

The component must have an architecture with definition type composition. For other definition types, this function gives an error.

Data Types: systemcomposer.arch.Component

Data Types: char

Introduced in R2019a