Get the number of dimensions of an output port
int_T ssGetOutputPortNumDimensions(SimStruct *S, int_T port)
S
SimStruct representing an S-function block.
port
Index of an output port.
A positive integer indicating the number of dimensions of the output port
specified by the index port
, or
DYNAMICALLY_SIZED
, if the number of dimensions is
unknown.
Use to determine the number of dimensions of output port specified by the index
port
.
C, C++
The following lines return the length of the last dimension of the first output port.
int_T numDim = ssGetOutputPortNumDimensions(S, 0); int_T lDim - ssGetOutputPortDimensionSize(S, 0, numDim-1);