Propagate the dimensions mode
No
C, C++
void mdlSetInputPortDimensionsModeFcn(SimStruct *S, int_T portIdx, DimensionsMode_T dimsMode)
S
SimStruct representing an S-Function block.
portIdx
Index of a port.
dimsMode
Current dimensions mode. Possible values are INHERIT_DIMS_MODE, FIXED_DIMS_MODE, and VARIABLE_DIMS_MODE
The Simulink engine calls this optional method to enable this S-function to set the dimensions mode of the input port indexed by portIdx.
See sfun_varsize_holdStatesUntilReset.c
for
an example of how to use this function.