RHSPartialNLSpring:

Path: Common/Estimation

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

   ------
   Inputs
   ------
   x         (2,1)  State [position;velocity] (not used)
   t         (1,1)  Time (not used)
   d          (.)   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
                     .m  (1,1) Mass

   -------
   Outputs
   -------
   a         (2,2)  State transition matrix

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

Back to the Common Module page