Writing S-Functions | ![]() ![]() |
Get the dimensions of the signal accepted by an input port.
Syntax
int_T *ssGetInputPortDimensions(SimStruct *S, int_T port)
Arguments
S
SimStruct representing an S-function block.
Description
Returns an array of integers that specifies the dimensions of the signal accepted by port
, e.g., [4 2] for a 4-by-2 matrix array. The size of the dimensions array is equal to the number of signal dimensions accepted by the port, e.g., 1 for a vector signal or 2 for a matrix signal.
Languages
See Also
ssGetInputPortNumDimensions
![]() | ssGetInputPortDimensionInfo | ssGetInputPortDirectFeedThrough | ![]() |