image thumbnail

Sunrise Sunset

version 1.1.1.0 (18 MB) by Meysam Mahooti
Rising and setting times of Sun and Moon and twilight times

848 Downloads

Updated 17 Mar 2020

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Year, month, day, lambda (Geographic east longitude of the observer in [deg]), phi (Geographic latitude of the observer in [deg]), zone (local time - universal time in [h]) and twilight (Indicates civil, nautical or astronomical twilight) are received, then rising and setting times of Sun and Moon and twilight times are computed.
Moon and Sun positions are computed using JPL ephemerides (DE430).

Cite As

Meysam Mahooti (2021). Sunrise Sunset (https://www.mathworks.com/matlabcentral/fileexchange/55312-sunrise-sunset), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019b
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!