Code covered by the BSD License  

Highlights from
Optimal Impulsive Orbital Transfer

Optimal Impulsive Orbital Transfer

by

 

27 Nov 2012 (Updated )

MATLAB script for the solution of the one and two impulse orbit transfer between two Earth orbits.

uvector(x)
function vhat = uvector(x)

% unit vector

% input

%  x = 3-component input vector

% output

%  vhat = 3-component unit vector

% Orbital Mechanics with MATLAB

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

vmag = sqrt(dot(x, x));

if (vmag > 0)
   vhat = x / vmag;
else
   vhat = 1.0e99;
end

Contact us