RHSNLSpring:

Path: Common/DemoFuns

% Nonlinear estimator spring model. 
 Has a linear and cubic spring plus a damper.
--------------------------------------------------------------------------
   Form:
   d = RHSNLSpring;
   xDot = RHSNLSpring( x, t, d )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x         (2,1)  State [position;velocity]
   t         (1,1)  Time (not used)
   fData     (1,1)  Data structure
                    .kL (1,1) Linear spring coefficient
                    .kC (1,1) Cubic spring coefficient
                    .c  (1,1) Damping coefficient
                    .f  (1,1) Force
                    .x0 (1,1) Nominal x

   -------
   Outputs
   -------
   xDot      (2,1)  State derivative

--------------------------------------------------------------------------

Back to the Common Module page