Calculates an approximate position of the Sun at a given UTC time (vector) in Earth-centered inertial (ECI) coordinates.
Updated 31 Jul 2020

View License

Given Gregorian year(s), day(s), and time(s) in UTC, calculate Earth-centered inertial (ECI) coordinates (in meters) of the vector(s) pointing from Earth's center to the center of the Sun.
Encapsulated by Seth B. Wagenman, from: as corrected by:, along with
other minor corrections based on recent revisions to the ecliptic plane. Obliquity of the ecliptic plane formula mostly derived from:

Cite As

Seth Wagenman (2024). approxECISunPosition (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes