Specify whether the elements of a Dwork vector are real or complex
CSignal_T ssSetDWorkComplexSignal(SimStruct *S, int_T vector, CSignal_T csig)
S
SimStruct representing an S-Function block.
vector
Index of a Dwork vector, where the index is one of
0
, 1
, 2
,
...
ssGetNumDWork(S)-1
.
numType
Numeric type, either COMPLEX_YES
or
COMPLEX_NO
.
1
(COMPLEX_YES
), 0
(COMPLEX_NO
), or -1
(COMPLEX_INHERITED
) depending on the value specified by
csig
.
Use in mdlInitializeSizes
or
mdlSetWorkWidths
to specify whether the values of the
specified work vector are complex numbers (COMPLEX_YES
) or real
numbers (COMPLEX_NO
, the default). For more information on using
DWork vectors, see How to Use DWork Vectors.
C, C++
For more information on using DWork vectors, see How to Use DWork Vectors.