Writing S-Functions Previous page   Next Page
ssSetDWorkWidth

Specify the width of a data type work vector

Syntax

Arguments

S
   SimStruct representing an S-Function block.

vector
   Index of the work vector, where the index is one of 0, 1, 2, ... ssGetNumDWork(S).

width
   Number of elements in the work vector.

Description

Use in mdlInitializeSizes or in mdlSetWorkWidths to set the number of elements in the specified data type work vector.

Languages

C, C++

See Also

ssGetDWorkWidth, ssSetDWorkDataType, ssSetNumDWork


Previous page  ssSetDWorkUsedAsDState ssSetErrorStatus Next page

© 1994-2005 The MathWorks, Inc.