Writing S-Functions    
ssGetInputPortDimensions

Get the dimensions of the signal accepted by an input port.

Syntax

Arguments

S
   SimStruct representing an S-Function block.

port
   Index of an input port.

Description

Returns an array of integers that specifies the dimensions of the signal accepted by port, e.g., [4 2] for a 4-by-2 matrix array. The size of the dimensions array is equal to the number of signal dimensions accepted by the port, e.g., 1 for a vector signal or 2 for a matrix signal.

Languages

C

See Also
ssGetInputPortNumDimensions


  ssGetInputPortDataType ssGetInputPortDirectFeedThrough