ssSetVectorMode

Specify the vector mode that an S-function supports

Syntax

void ssSetVectorMode(SimStruct *S, ssVectorMode mode)

Arguments

S

SimStruct representing an S-Function block.

mode

Vector mode.

Description

Specifies the types of vector-like signals that an S-Function block's input and
output ports support. The Simulink® engine uses this information during signal dimension propagation to
check the validity of signals connected to the block or emitted by the block. The
enumerated type ssVectorMode defines the set of values that
mode can have.

Mode Value

Signal Dimensionality Supported

SS_UNKNOWN_MODE

Unknown

SS_1_D_OR_COL_VECT

1-D (vector) or single-column 2-D (column
vector)

SS_1_D_OR_ROW_VECT

1-D or single-row 2-D (row vector) signals

SS_1_D_ROW_OR_COL_VECT

Vector or row or column vector

SS_1_D_VECT

Vector

SS_COL_VECT

Column vector

SS_ROW_VECT

Row vector

Languages

C, C++

Example

The following statement

ssSetVectorMode(S, SS_1_D_OR_ROW_VECT);

indicates that the S-function supports row-vectors for the input and output port
signals.

Introduced before R2006a

MATLAB Command

You clicked a link that corresponds to this MATLAB command:

Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

This website uses cookies to improve your user experience, personalize content and ads, and analyze website traffic. By continuing to use this website, you consent to our use of cookies. Please see our Privacy Policy to learn more about cookies and how to change your settings.