Skip to Main Content Skip to Search
Product Documentation

ssSetDWorkComplexSignal - Specify whether the elements of a data type work vector are real or complex

Syntax

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

Arguments

S

SimStruct representing an S-Function block.

vector

Index of a data type work 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 Using Work Vectors.

Languages

C, C++

Examples

For more information on using DWork vectors, see Using Work Vectors.

See Also

ssSetDWorkDataType, ssGetNumDWork

  


Related Products & Applications

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