Day Length
                    Version 1.3.0.0 (3 KB) by  
                  Travis Wiens
                
                
                  Calculates the length of daylight for any day and latitude
                
                  
              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 (2025). Day Length (https://uk.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 LinuxCategories
      Find more on Gravitation, Cosmology & Astrophysics in Help Center and MATLAB Answers
    
  Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
