Writing S-Functions    
ssSetInputPortMatrixDimensions

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

Syntax

Arguments

S
   SimStruct representing an S-Function block.

port
   Index of an input port.

Row dimension of matrix signals accepted by port or DYNAMICALLY_SIZED.

n
   Column dimension of matrix signals accepted by port or DYNAMICALLY_SIZED.

Description

Specifies that port accepts an m-by-n matrix signal. If either dimension is DYNAMICALLY_SIZED, the other must be DYNAMICALLY_SIZED or 1. Returns 1 if successful; otherwise, 0.

Languages

C

Example

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


  ssSetInputPortFrameData ssSetInputPortOffsetTime