Skip to Main Content Skip to Search
Product Documentation

ssSetInputPortDimsSameAsOutputPortDims - Set the dimensions of ouput port outIdx to be equal than 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 issued, it indicates that the S-Function does not set the outport port current dimension.

Languages

C, C++

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS