Euler:

Path: Math/Integration

% EULER Euler's method for numerical integration.
 Accepts up to 10 optional arguments that are passed through to Fun:

   Fun(x,{t,p1,p2,p3,p4,p5,p6,p7,p8,p9,p10})

--------------------------------------------------------------------------
   Form:
   x = Euler( Fun, x, h, t, varargin )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   Fun                Function    Fun(x,{t,...})
   x                  State (column vector)
   h                  Independent variable step
   t                  Current time
   varargin           Optional arguments

   -------
   Outputs
   -------
   x                  Updated state

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

Back to the Math Module page