PDF document and a MATLAB function named aplanet1.m, and a demonstration script, named demo_aplanet1.m that can be used to determine the apparent geocentric and topocentric coordinates of the Moon, Sun or a planet. The source ephemeris for this routine is a JPL binary ephemeris file. These applications use several functions ported to MATLAB from the Fortran version of the NOVAS (Naval Observatory Vector Astrometry Subroutines) source code developed at the United States Naval Observatory (www.usno.navy.mil/USNO/astronomical-applications/software-products/novas).
JPL binary ephemeris files for Windows compatible computers can be downloaded from the Celestial and Orbital Mechanics web site located at www.cdeagle.com.
David Eagle (2021). Apparent Coordinates of the Moon, Sun or a Planet (https://www.mathworks.com/matlabcentral/fileexchange/39232-apparent-coordinates-of-the-moon-sun-or-a-planet), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!