Variant Signal Dimensions
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
- Use Symbolic Dimensions for Signal Dimensions
Specify dimension information using symbols and incorporate them into the generated code.
- Implement Symbolic Dimensions for Array Sizes in Generated Code
Define symbolic dimensions for array size dimensions in Simulink® model.
- Generate Code for Variant Subsystem with Child Subsystems of Different Output Signal Dimensions
This example shows how to use symbolic dimensions to generate code for a variant subsystem consisting of child subsystems of different output signal dimensions.
- Configure Symbolic Dimensions for S-Function Blocks
Configure S-functions to support forward propagation, backward propagation, or forward and backward propagation of symbolic dimensions during simulation.
- Symbolic Dimensions Supported Block Constraints and Limitations
Simulink capabilities and limitations in supporting symbolic dimensions.