Writing S-Functions | ![]() ![]() |
Specify dimension information for an input port that accepts matrix signals.
Syntax
void ssSetInputPortMatrixDimensions(SimStruct *S, int_T port,
int_T m, int_T n)
Arguments
S
SimStruct representing an S-function block.
m
Row dimension of matrix signals accepted by port or DYNAMICALLY_SIZED
DYNAMICALLY_SIZED
Description
Specifies that port
accepts an m
-by-n
matrix signal. If either dimension is DYNAMICALLY_SIZED
, the other must be DYNAMICALLY_SIZED
or 1.
Languages
Example
The following example specifies that input port 0 accepts 2-by-2 matrix signals.
ssSetInputPortMatrixDimensions(S, 0, 2, 2);
See Also
ssSetInputPortDimensionInfo
![]() | ssSetInputPortDirectFeedThrough | ssSetInputPortOffsetTime | ![]() |