Main Content

Variant Parameters

Generate and manage code for parameter variations in a model

With variant parameters in Simulink®, you can represent value variations of a system in a single model. You can group different sets of values based on the variant to simulate. You can activate each set of values depending on the variant control. You can incorporate variant parameters in any Simulink block. For more information, see What Are Variants and When to Use Them.

You can use Variant Manager for Simulink to manage variant parameters in your model.

The code that you generate for variant parameters can contain all the possible values of a system. You can switch between the values prior to code compile or at model startup as described in Activate Variant During Different Stages of Simulation and Code Generation Workflow.

Topics