inlineComponent

Inline reference architecture into model

Description

componentHandle = inlineComponent(component,inlineFlag) inlines the contents of the architecture model referenced by the specified component and breaks the link to the reference model. If inlineFlag is false, then the contents are removed and only interfaces remain.

Examples

collapse all

Save the component robotcomp in the architecture model Robot.slx and reference it from another component, robotArm so that robotArm uses the architecture of robotcomp. Inline robotcomp so that its architecture can be edited independently.

saveAsModel(robotcomp,'Robot');
linkToModel(robotArm, 'Robot');
inlineComponent(robotArm,true);

Input Arguments

collapse all

The component must be linked to an architecture model.

Data Types: systemcomposer.arch.Component

If true, contents of the referenced architecture model are copied to the component architecture. If false, the contents are not copied, only ports and interfaces are inlined.

Data Types: char

Output Arguments

collapse all

Introduced in R2019a