Get the name of a Dwork vector
char_T *ssGetDWorkName(SimStruct *S, int_T vector)
SimStruct that represents an S-Function block.
Index of the work vector, where the index is one of
A pointer (
char_T *) to the character vector that represents
the name of the DWork vector specified by the index
Use to obtain the name of a particular DWork vector.
The following lines get the DWork vector name and display it at the MATLAB® command prompt.
char_T *dname = ssGetDWorkName(S, 0); ssPrintf("Initial value of %s has been set to 1\n",dname);
Introduced before R2006a