Variant Signal Dimensions
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
- Generate Code Using Symbolic Dimensions for Flexible Signal Sizes
Incorporate symbolic dimensions in generated code to enable flexible signal sizing.
- 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 Limitations for Code Generation
Simulink capabilities and limitations in supporting symbolic dimensions.