Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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 How to Use DWork Vectors.

Languages

C, C++

Examples

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

Introduced before R2006a

Was this topic helpful?