Determine whether a data type work vector is used as a discrete state vector
int_T ssGetDWorkUsedAsDState(SimStruct *S, int_T vector)
SimStruct representing an S-Function block.
Index of a data type work vector, where the index is one of
if this vector is used to store a block's discrete states. Otherwise,
Use to determine if the DWork vector specified by the index
used to store discrete state values.
For more information on using DWork vectors, see How to Use DWork Vectors.