You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Calculates the length of daylight for any day of the year and latitude.
This uses Herbert Glarner's formulae which do not take into account refraction, twilight, size of the sun, etc http://herbert.gandraxa.com/herbert/lod.asp.
An example is included
See blog.nutaksas.com for more details/
Cite As
Travis Wiens (2026). Day Length (https://www.mathworks.com/matlabcentral/fileexchange/20390-day-length), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.3.0.0 (3 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
