| Writing S-Functions | ![]() |
Specify that an output port emits one-based indices.
Syntax
Arguments
S
SimStruct representing an S-Function block.
pIdx
Output port of the S-function.
Description
Use this macro in mdlInitializeSizes to specify that port pIdx emits one-based index values. Simulink signals an error if it detects during model update that the port is connected to an input that expects zero-based indices.
Languages
See Also
mdlInitializeSizes, ssSetOneBasedIndexOutputPort, ssSetZeroBasedIndexOutputPort
| ssSetOneBasedIndexInputPort | ssSetOptions | ![]() |
© 1994-2005 The MathWorks, Inc.