getModelVariantVariable
Get code configuration from code mappings for
Simulink.VariantVariable object
Since R2025a
Description
returns the value of a code mapping property for the specified propertyValue = getModelVariantVariable(codeMappingObj,variantVariable,property)Simulink.VariantVariable object variantVariable (also
referred to as a variant parameter) from the code mapping
codeMappingObj. A Simulink.VariantVariable object
derives its code mappings from the Simulink.Parameter object that is used
to set the Specification
property of the object. The getModelVariantVariable function returns
the storage class and storage class property settings configured for the
Simulink.VariantVariable object from this
Simulink.Parameter object. For code mappings support, the
Simulink.VariantVariable object and its associated
Simulink.VariantControl and Simulink.Parameter objects
must be defined in the model workspace of the model.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2025a