Computing Phases of the Moon
版本 1.1.0 (12.8 KB) 作者:
David Eagle
A MATLAB Script for Computing Phases of the Moon
This MATLAB script uses Brent's one-dimensional extrema algorithm to determine the calendar date and UTC time of phases of the Moon.
phases of the Moon
===============
please input the initial calendar date
(1 <= month <= 12, 1 <= day <= 31, year = all digits!)
? 1,1,2025
please input the simulation period (days)
? 120
new moon
--------------
calendar date 29-Jan-2025
UTC time 12:36:24
illumination 0.00 percent
first quarter
---------------
calendar date 05-Feb-2025
UTC time 08:02:42
illumination 50.00 percent
full moon
------------
calendar date 12-Feb-2025
UTC time 13:53:44
illumination 100.00 percent
last quarter
---------------
calendar date 20-Feb-2025
UTC time 17:33:08
illumination 50.00 percent
引用格式
David Eagle (2025). Computing Phases of the Moon (https://ww2.mathworks.cn/matlabcentral/fileexchange/70991-computing-phases-of-the-moon), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2024b
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Gravitation, Cosmology & Astrophysics 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!