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.
P — Variant parameter object Simulink.VariantVariable object
Variant parameter object created using Simulink.VariantVariable,
specified as a Simulink.VariantVariable object.
Condition — Variant control expression string
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.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: United States.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.