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.

ssGetOutputPortDimensions

Get the dimensions of the signal leaving an output port

Syntax

int_T *ssGetOutputPortDimensions(SimStruct *S, int_T port)

Arguments

S

SimStruct representing an S-function block.

port

Index of an output port.

Returns

A pointer (int_T *) to an array of integers. The array contains elements with the value DYNAMICALLY_SIZED (-1) when the size of a dimension is unknown.

Description

Use to obtain the dimensions of the signal leaving the output port specified by the index 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

C, C++

Introduced before R2006a

Was this topic helpful?