Main Content

Variant Signal Dimensions

Generate and manage code for variations in signal dimensions of a model

Use symbolic dimensions to represent signal dimensions in your model for blocks and data objects. By using symbolic dimensions, you can simulate various sets of dimension choices without having to alter your model for each set. These symbols propagate throughout the model during simulation, and are incorporated into the code generated. For more information, see Create a Model with Symbolic Dimensions.

When you use symbolic dimensions, the dimension of the signals are not fixed at design time. Instead, they are resolved during simulation, allowing the model to adapt to different signal dimensions. The generated code includes these symbols as preprocessor conditionals, making the code flexible and able to work with different dimensions without needing to regenerate the code. For more information on signal dimensions, see Signal Dimensions.

Topics

Featured Examples