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 that represents 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++
Version History
Introduced in R2009b