addChoice

Add a variant choice to a variant component

Description

compList = addChoice(variantComponent,choices) creates variant choices specified in choices in the specified variant component and returns their handles.

compList = addChoice(variantComponent,choices,labels) creates variant choices specified in choices with labels labels in the specified variant component and returns their handles.

Input Arguments

collapse all

The architecture where the variant choices are added.

Data Types: systemcomposer.arch.Component

Cell array where each element defines the name of a choice component. The length of choices must be the same as labels.

Data Types: string

Array of labels where each element is the label for the corresponding choice.. The length of labels must be the same as choices.

Data Types: string

Output Arguments

collapse all

Array of created components. This array is the same size as choices and labels.

Introduced in R2019a