Writing S-Functions Previous page   Next Page
ssSetInputPortDimensionInfo

Specify information about the dimensionality of an input port

Syntax

Arguments

S
   SimStruct representing an S-function block.

port
   Index of an input port.

Structure of type DimsInfo_T that specifies the dimensionality of the signals accepted by port.

The structure is defined as

where

Description

Specifies the dimension information for port. Use this function in mdlInitializeSizes to initialize the input port dimension information. If you want the port to inherit its dimensions from the port to which it is connected, specify DYNAMIC_DIMENSION as the dimsInfo for port.

Languages

C

Example

The following example specifies that input port 0 accepts 2-by-2 matrix signals.

See Also

ssSetInputPortMatrixDimensions, ssSetInputPortVectorDimension


Previous page  ssSetInputPortDataType ssSetInputPortDirectFeedThrough Next page

© 1994-2005 The MathWorks, Inc.