| Writing S-Functions | ![]() |
Specify that an input port expects zero-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 zero-based index values. Simulink signals an error if it detects that the signal connected to this block is one-based when it updates a diagram containing the S-function.
Languages
See Also
mdlInitializeSizes, ssSetZeroBasedIndexOutputPort, ssSetOneBasedIndexInputPort
| ssSetVectorMode | ssSetZeroBasedIndexOutputPort | ![]() |
© 1994-2005 The MathWorks, Inc.