File Exchange

image thumbnail

Analyzing the Sun's Path

version 19.1.1 (1.16 MB) by Jonathan LeSage
Solar Position Tracking and the Analemma Phenomenon


Updated 20 Apr 2020

From GitHub

View Version History

View license on GitHub

The position of the sun is an afterthought for most, unless it is blinding you on your commute home. However, the position of the sun remains incredibly important, even in the modern age. While solar navigation through sextants was common until GPS came along, architects/engineers still track the sun for building shading and solar panel optimization. This script dives into the "analemma" which is an interesting phenomenon associated with solar observations. Try testing different latitudes to see how the sun's trajectory changes and what the analemma looks like!

Cite As

Jonathan LeSage (2021). Analyzing the Sun's Path (, GitHub. Retrieved .

Comments and Ratings (6)

james Amodie

Francisc Nazar

Does this work for the southern hemisphere?

delfino enriquez

Prasanth Reddy

Prasanth Reddy

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!