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.

ssSetInputPortVectorDimension

Specify dimension information for an input port that accepts vector signals

Syntax

int_T ssSetInputPortVectorDimension(SimStruct *S,  int_T port,
 int_T w)

Arguments

S

SimStruct representing an S-Function block.

port

Index of an input port.

w

Width of the vector or DYNAMICALLY_SIZED.

Returns

1 if successful; otherwise, 0.

Description

Specifies that port accepts a w-element vector signal. If the width is dynamically sized, the S-function must provide mdlSetInputPortDimensionInfo and mdlSetDefaultPortDimensionInfo methods to enable the signal dimensions to be set correctly during signal propagation.

    Note   This function and the ssSetInputPortWidth macro are functionally identical.

Languages

C, C++

Example

The following example specifies that input port 0 accepts an 8-element matrix signal.

ssSetInputPortVectorDimension(S, 0, 8);

Introduced before R2006a

Was this topic helpful?