| Writing S-Functions | ![]() |
Get the width of an input port.
C Syntax
Ada Syntax
Arguments
S
SimStruct representing an S-Function block.
port
Index of port whose width is required.
Description
Gets the input port number of elements. If the input port is a 1-D array with w elements, this function returns w. If the input port is an M-by-N matrix, this function returns m*n. If m or n is unknown, this function returns DYNAMICALLY_SIZED. Use in any routine (except mdlInitializeSizes) to determine the width of an input port.
Languages
See Also
ssSetInputPortWidth
| ssGetInputPortSignalPtrs | ssGetIWork | ![]() |