变体信号维度
为模型信号维度的变化生成和管理代码
使用符号维度对各种维度选择项集进行仿真,而无需为每个集重新生成代码。这些符号在仿真期间在整个模型中传播,然后进入生成的代码中。
主题
- Implement Symbolic Dimensions for Array Sizes in Generated Code
Define symbolic dimensions for array size dimensions in Simulink® model.
- 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.
- 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.