Moon Phases

Determination of lunar phases and checking for eclipses


Updated Mon, 03 Oct 2022 09:44:04 +0000

View License

Input: year and local time-UT[h]
Output: phases of the Moon and time of lunar eclipses are specified.
Montenbruck O., Pfleger T.; Astronomy on the Personal Computer; Springer Verlag, Heidelberg; 4th edition (2000).
Meeus J., "Astronomical Algorithms," Willmann-Bell, Richmond, Virginia, 2nd edition (1998).

Cite As

Meysam Mahooti (2023). Moon Phases (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

It was revised on 2022-10-02.

The DE436 full matrix is added.

ETminUT.m is updated to cover more years considering you are using DE430Coeff.mat full matrix from

ETminUT.m is revised and JPL Development Ephemeris (DE430) are used for computation of the Sun and the Moon positions in PhasesFunc.m.

Revised on 2017-03-05.
The image is added.