Main Content

ssSetDWorkComplexSignal

Specify whether the elements of a Dwork vector are real or complex

Syntax

CSignal_T ssSetDWorkComplexSignal(SimStruct *S, int_T vector,
  CSignal_T csig)

Arguments

S

SimStruct that represents 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.

Returns

1 (COMPLEX_YES), 0 (COMPLEX_NO), or -1 (COMPLEX_INHERITED) depending on the value specified by csig.

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). For more information on using DWork vectors, see How to Use DWork Vectors.

Languages

C, C++

Examples

For more information on using DWork vectors, see How to Use DWork Vectors.

Version History

Introduced before R2006a