You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
We can estimate the time of sunrise and sunset for any location on the earth if we know the latitude, and longitude for that location. To estimate sunrise and sunset for any day of the year we need to calculate two values for a given date and place -- the equation of time and the hour angle.
This live script illustrates the technique used to estimate sunrise and sunset times.
Cite As
David Garrison (2026). Sunrise/Sunset (https://uk.mathworks.com/matlabcentral/fileexchange/55509-sunrise-sunset), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.1 (13.8 MB)
MATLAB Release Compatibility
- Compatible with R2019a and later releases
Platform Compatibility
- Windows
- macOS
- Linux
