choices = getChoice(P,Condition)
returns the value associated with the variant condition Condition. You
can specify multiple conditions of variant parameter p in a cell
array.
Variant parameter object created using Simulink.VariantVariable,
specified as a Simulink.VariantVariable object.
Variant control expression corresponding to the value to be returned, specified as a
string. You can get multiple choices of the object by specifying conditions in a cell
array.