Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

ssGetdX - Get the derivatives of a block's continuous states

Syntax

real_T *ssGetdX(SimStruct *S)

Arguments

S

SimStruct representing an S-Function block or Simulink model.

Returns

A pointer (real_T *) to an array containing the derivatives of the continuous states of S, which can be a block or the model. Returns NULL if there are no continuous states.

Description

Use this macro in mdlDerivatives to get the derivatives of a model or block's continuous states. Use ssGetNumContStates(S) to get the length of the array.

Languages

C, C++

Example

See the S-function matlabroot/toolbox/simulink/simdemos/simfeatures/src/csfunc.c used in sfcndemo_csfunc.mdl and the S-function matlabroot/toolbox/simulink/simdemos/simfeatures/src/sfun_atol.c used in sfcndemo_sfun_atol.mdl for examples using this function.

See Also

ssGetNumContStates, ssGetContStates

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS