This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

mdlSetInputPortDimensionsModeFcn

Propagate the dimensions mode

Required

No

Languages

C, C++

Syntax

void mdlSetInputPortDimensionsModeFcn(SimStruct *S, int_T portIdx,
DimensionsMode_T dimsMode)

Arguments

S

SimStruct representing an S-Function block.

portIdx

Index of a port.

dimsMode

Current dimensions mode. Possible values are INHERIT_DIMS_MODE, FIXED_DIMS_MODE, and VARIABLE_DIMS_MODE

Description

The Simulink engine calls this optional method to enable this S-function to set the dimensions mode of the input port indexed by portIdx.

C Example

See sfun_varsize_holdStatesUntilReset.c for an example of how to use this function.

Introduced in R2009b