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.

ssGetDWorkUsedAsDState

Determine whether a data type work vector is used as a discrete state vector

Syntax

int_T ssGetDWorkUsedAsDState(SimStruct *S, int_T vector)

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.

Returns

The int_T value 1 (SS_DWORK_USED_AS_DSTATE) if this vector is used to store a block's discrete states. Otherwise, returns 0 (SS_DWORK_USED_AS_DWORK).

Description

Use to determine if the DWork vector specified by the index vector is used to store discrete state values.

Languages

C, C++

Example

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

Introduced before R2006a

Was this topic helpful?