Specify the width of a Dwork vector
int_T ssSetDWorkWidth(SimStruct *S, int_T vector, int_T width)
S
SimStruct representing an S-Function block.
vector
Index of the work vector, where the index is one of
0
, 1
, 2
,
...
ssGetNumDWork(S)-1
.
width
Number of elements in the work vector.
The number of elements passed in through width
.
Use in mdlInitializeSizes
or in
mdlSetWorkWidths
to set the number of elements in the
specified Dwork vector. For more information on using DWork vectors, see How to Use DWork Vectors.
C, C++
See the S-function sfun_rtwdwork.c
used in sfcndemo_sfun_rtwdwork
.