OscillatorRHS:

Path: Common/DemoFuns

% Right hand side for a spring.

--------------------------------------------------------------------------
   Form:
   xDot = OscillatorRHS( x, t, u, mass )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x         (2,1)  [position;velocity]
   t         (1,1)  Time
   u         (1,1)  Control
   mass      (1,1)  Mass
   omega     (1,1)  Natural frequency

   -------
   Outputs
   -------
   xDot      (2,1)  d[position;velocity]/dt

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

Back to the Common Module page