Path: LunarMissions/LunarLanding
% This function computes the matrices a and b for dx/dt = a*x + b*u . This is for the function RHSPlanet3D. If aL is entered it will use an analytical solution for a spherical planet. The mass state equation is not output. b multiplies the acceleration vector. Type RHSPlanet3DToAB for a demo. -------------------------------------------------------------------------- Form: [a,b,aC] = RHSPlanet3DToAB( x, d, dT ) -------------------------------------------------------------------------- ------ Inputs ------ x (6,1) [r;v] (km/km/s) d (.) Data structure for RHSPlanet3D dT (1,1) Time step ------- Outputs ------- a (6,6) State transition matrix b (6,3) Input matrix aC (6,6) Continuous --------------------------------------------------------------------------
LunarMissions: LunarLanding/RHSPlanet3D Common: Control/C2DZOH Common: General/DispWithTitle Math: Linear/Mag Math: Linear/Skew
Back to the LunarMissions Module page