RHSZermelo:

Path: Orbit/Optimization

% Zermelo's differential equation right hand side.
 Models a constant velocity field. Test function for TrajectoryOptimization.
--------------------------------------------------------------------------
   Form:
   vargout = RHSZermelo( t, x, flag, d )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   t              (1,1) Time
   x              (4,1) State [x;y;lambdaX;lambdaY]
   flag           (1,1) Flag from ode 113
   d              (1,1) Data structure
                        .h (1,1) Characteristic dimension
                        .v (1,1) Velocity

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

--------------------------------------------------------------------------
 Reference: Bryson, Ho, "Applied Optimal Control", Hemisphere Publishing, 1975. 
--------------------------------------------------------------------------

Back to the Orbit Module page