setModelVariantControl
Description
setModelVariantControl(
configures the specified codeMappingObj
,variantControl
,Name=Value
)Simulink.VariantControl
object variantControl
in the code
mappings codeMappingObj
for code generation. Specifying code generation
attributes for a Simulink.VariantControl
object using code mappings is
supported when the object is defined in the model workspace and its
Value
property is set to a Simulink.Parameter
object. Use this function to map the specified variant control to the storage class and
storage class property settings that the code generator uses to produce C
code.
Examples
Input Arguments
Name-Value Arguments
Version History
Introduced in R2025a