Writing S-Functions | ![]() ![]() |
Get the derivatives of a block's continuous states.
Syntax
Arguments
S
SimStruct representing an S-Function block.
Description
Returns a pointer to an array containing the continuous states of S, which can be a block or the model. Use ssGetNumContStates(S)
to get the length of the array. Use this macro in mdlDerivatives to get the derivatives of a model or block's continuous states.
Note The pointer returned by this macro changes as the solver evaluates different integration stages to compute the integral. |
Languages
See Also
ssGetNumContStates, ssGetContStates
![]() | ssGetDWorkWidth | ssGetErrorStatus | ![]() |