addVariantComponent
Add variant components to architecture
Syntax
Description
adds a set of variant components specified by the array of names.variants = addVariantComponent(arch,variantComponents)
To remove a variant component, use the destroy
function.
adds a set of variant components, and specifies their positions by defining the coordinates
of the top-left and bottom-right corners of each component on the canvas, in the form of a
variants = addVariantComponent(___,Position=coordinatesVector)1-by-4 numeric array.
Examples
Input Arguments
Output Arguments
More About
Version History
Introduced in R2019a
See Also
Blocks
Objects
Functions
addChoice|getActiveChoice|getChoices|getCondition|makeVariant|makeVariantAssembly|setActiveChoice|setCondition|updatePortsFromChoices
Topics
- Overview of System Composer API
- Create Variant Components in Label Mode
- Decompose and Reuse Components
- Calculate Endurance Using Quadcopter Architectural Design
- Design Insulin Infusion Pump Using Model-Based Systems Engineering
- Add or Remove Variant Choices of Variant Assembly Component Blocks Using External File