| Contents | Index |
void ssAddOutputDimsDependencyRule(SimStruct *S, int_T outIdx, DimsDependInfo_T ruleInfo)
SimStruct representing an S-Function block.
Output port index.
Structure containing the dimensions propagation method information.
No return value
Use this function in mdlSetWorkWidths to register a method that updates the dimensions for the output port when there is a change in the current input signal dimensions. The method is for the case when the output signal size depends only on the input signal size. It is called only when a dimensions update is necessary, instead of calling in each sim loop pass.
Requires you to set up a ruleinfo struct, which includes
int *inputs — Index to inputs whose dimensions affect the output dimensions
int numInputs — Number of inputs that affect the output dimensions
SetOutputDimsFcn SetOutputDimsFcn — Function to update the output dimensions based on the input dimensions.
C, C++
See the S-function sfun_varsize_holdStatesUntilReset.c.

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |