Day Length

Calculates the length of daylight for any day and latitude
2.3K Downloads
Updated 15 Jul 2015

View License

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 (2024). Day Length (https://www.mathworks.com/matlabcentral/fileexchange/20390-day-length), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Gravitation, Cosmology & Astrophysics in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!

day_length_1_03/day_length_1_03/

Version Published Release Notes
1.3.0.0

Fixes bug for latitudes above the arctic circle.

1.1.0.0

Removed GPL per Mathworks' requirements.

1.0.0.0

Mispel Tital