Path: AerospaceUtils/Coord
% Compute latitude, longitude, altitude from ECEF position. Assumes spherical planet. -------------------------------------------------------------------------- Form: lla = ECEFToLLA( rECEF, rP ); -------------------------------------------------------------------------- ------ Inputs ------ rECEF (3,:) ECEF position vector [km] rP (1,1) Radius of planet (for Earth: 6378.14) [km] ------- Outputs ------- lla (3,:) Latitude [rad], longitude [rad], altitude [km] --------------------------------------------------------------------------
Math: Linear/Mag
Back to the AerospaceUtils Module page