Code covered by the BSD License
21 Jun 2008
17 Jul 2009)
Calculates the length of daylight for any day and latitude
Watch this File
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/
Removed GPL per Mathworks' requirements.