| Contents | Index |
int_T ssGetOutputPortNumDimensions(SimStruct *S, int_T 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);

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |