makeVariant

Convert component to variant choice

Description

[variantComp,choices] = makeVariant(components) converts components to variant choices and returns the parent component and available choices.

Input Arguments

collapse all

Architecture components to be converted to variants, specified as an array of systemcomposer.arch.Component objects.

Output Arguments

collapse all

Component containing variants, returned as a systemcomposer.arch.VariantComponent object.

Variant choice names, returned as a cell array of character vectors.

Data Types: char

Introduced in R2019a