Writing S-Functions    
ssGetOutputPortDimensions

Get the dimensions of the signal leaving an output port.

Syntax

Arguments

S
   SimStruct representing an S-Function block.

port
   Index of an output port.

Description

Returns an array of integers that specifies the dimensions of the signal leaving 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
ssGetOutputPortNumDimensions


  ssGetOutputPortDataType ssGetOutputPortFrameData