Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

ssGetOutputPortNumDimensions

Get the number of dimensions of an output port

Syntax

int_T ssGetOutputPortNumDimensions(SimStruct *S, int_T port)

Arguments

S

SimStruct representing an S-function block.

port

Index of an output port.

Returns

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.

Description

Use to determine the number of dimensions of output port specified by the index port.

Languages

C, C++

Example

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);

Introduced before R2006a

Was this topic helpful?