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.

ssSetInputPortDimsSameAsOutputPortDims

Set the dimensions of output port outIdx to be equal to the dimensions of input port inpIdx. This method is called from mdlSetWorkWidths.

Syntax

void ssSetInputPortDimsSameAsOutputPortDims(SimStruct *S, int_T inpIdx, int_T outIdx)

Arguments

S

SimStruct representing an S-Function block.

inpIdx

Input port index.

outIdx

Output port index.

Returns

No return value

Description

Use this function in mdlSetWorkWidths to set the dimensions of output port outIdx to be equal to the dimensions of input port inpIdx without the need of using ssSetCurrentOutputPortDimensions for each output dimension. When this function is called, it indicates that the S-Function does not set the output port current dimension.

Languages

C, C++

Introduced in R2009b

Was this topic helpful?