| Writing S-Functions | |
Write work vectors to the model.rtw file
Syntax
int_T ssWriteRTWWorkVect(SimStruct *S, const char_T *vectName, int_T nNames, const char_T *name1, int_T size1, ..., const char_T * nameN, int_T sizeN)
Arguments
S
SimStruct representing an S-Function block.
vectName
Name of work vector (must be "RWork", "IWork", or "PWork").
nNames
Number of names (see next argument).
name1 ... nameN
Names of groups of work vector elements.
size1 ... sizeN
Size of each element group (the total of the sizes must equal the size of the work vector).
Description
Use this function in mdlRTW to write work vectors to this S-function's model.rtw file. This function returns true if successful.
Languages
See Also
![]() | ssWriteRTWVectParam |
© 1994-2005 The MathWorks, Inc.