| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Simulink |
| Contents | Index |
| Learn more about Simulink |
No
void mdlSetInputPortDimensionsModeFcn(SimStruct *S, int_T portIdx,
DimensionsMode_T dimsMode)
SimStruct representing an S-Function block.
Index of a port.
Current dimensions mode. Possible values are INHERIT_DIMS_MODE FIXED_DIMS_MODE and VARIABLE_DIMS_MODE
SetInputPortDimensionsMode(s, port, dm)
Instance of Simulink.MSFcnRunTimeBlock class representing the Level-2 M-File S-Function block.
Integer value specifying index of port to be set.
Integer value representing the dimensions mode of the port.
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 matlabroot/toolbox/simulink/simdemos/simfeatures/src/sfun_varsize_holdStatesUntilReset.c for an example of how to use this function.
C, C++, M
![]() | mdlSetInputPortDimensionInfo | mdlSetInputPortFrameData | ![]() |

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