| Writing S-Functions | ![]() |
Specify that an input port expects one-based indices.
Syntax
Arguments
S
SimStruct representing an S-Function block.
pIdx
Input port of the S-function.
Description
Use this macro in mdlInitializeSizes to specify that port pIdx expects one-based index values. Simulink signals an error if it detects that the signal connected to this block is zero-based when it updates a diagram containing the S-function.
Languages
See Also
mdlInitializeSizes, ssSetOneBasedIndexOutputPort, ssSetZeroBasedIndexInputPort
| ssSetOffsetTime | ssSetOneBasedIndexOutputPort | ![]() |
© 1994-2005 The MathWorks, Inc.