Writing S-Functions | ![]() ![]() |
Specify whether the elements of a data type work vector are real or complex.
Syntax
void
ssSetDWorkComplexSignal(SimStruct *S, int_T vector,
CSignal_T numType)
Arguments
S
SimStruct representing an S-function block.
0
, 1
, 2
, ...
ssGetNumDWork
(S)
numType
COMPLEX_YES
or COMPLEX_NO
.
Description
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).
Languages
See Also
ssSetDWorkDataType, ssGetNumDWork
![]() | ssSetDataTypeZero | ssSetDWorkDataType | ![]() |