Writing S-Functions    
ssSetInputPortVectorDimension

Specify dimension information for an input port that accepts vector signals.

Syntax

Arguments

S
   SimStruct representing an S-Function block.

port
   Index of an input port.

Width of vector or DYNAMICALLY_SIZED.

Description

Specifies that port accepts a w-element vector signal. Returns 1 if successful; otherwise, 0.

Languages

C

Example

The following example specifies that input port 0 accepts an 8-element matrix signal.

See Also
ssSetInputPortWidth


  ssSetInputPortSampleTimeIndex ssSetInputPortWidth