| Contents | Index |
void ssSetVectorMode(SimStruct *S, ssVectorMode mode)
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 |
C, C++
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.

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |