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. You can simulate using various sets of dimension choices without having to alter your model for every set by using symbolic identifiers. These symbols propagate throughout the model during simulation, and are incorporated into the generated code.

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 code generated includes these symbols as preprocessor conditionals, making the code flexible and able to work with different dimensions without having to regenerate the code. For more information on signal dimensions, see Signal Dimensions.

Topics

Featured Examples