Convert ECEF to ECI Coordinates

Take any vector or series of vectors in the ECEF Coordinate frame and convert them to ECI.

You are now following this Submission

Convert WGS 84 (CTS, ECEF) Coordinates to ECI (CIS, Epoch J2000.0) Coordinates. This function has been vectorized for speed. The associated error in converting between coordinate frames is on the order of 1.2*10^-11 km when compared to STK ephemeris output.

To run this function type the following command in a MATLAB prompt:

>> [r_ECI v_ECI a_ECI] = ECEFtoECI(JD,r_ECEF,v_ECEF,a_ECEF);

Where
JD is a Julian Date Vector [1 x N]
r_ECEF is the position vector in ECEF coordinates [3 x N]
v_ECEF is the velocity vector in ECEF coordinates [3 x N]
a_ECEF is the acceleration vector in ECEF coordinates [3 x N]

r_ECI is the position vector in ECI coordinates [3 x N]
v_ECI is the velocity vector in ECI coordinates [3 x N]
a_ECI is the acceleration vector in ECI coordinates [3 x N]

Cite As

Darin Koblick (2026). Convert ECEF to ECI Coordinates (https://www.mathworks.com/matlabcentral/fileexchange/28234-convert-ecef-to-eci-coordinates), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Julian Date to Greenwich Mean Sidereal Time

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

Added the acceleration term to inputs and outputs

1.0.0.0