You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Uses the distance function from the MATLAB Mapping Toolbox to calculate the arc distance to the sub-solar location. Includes checkSizes function from my general function library.
EarthEphemeris - Returns the solar declination, Earth-Sun radius vector (distance in astronomical units), solar longitude, and optionally the equation of time.
sunang - Returns cosine of sun angle, its azimuth (0 south, + east), and airmass (path length accounting for Earth curvature). Optionally accounts for refraction.
sunRiseSet - Times of sunrise and sunset.
sunslope - Cosine of illumination angle on slope
Cite As
Jeff Dozier (2026). Sun Position (https://se.mathworks.com/matlabcentral/fileexchange/126625-sun-position), MATLAB Central File Exchange. Retrieved .
General Information
- Version 2.1.1 (334 KB)
MATLAB Release Compatibility
- Compatible with R2014b and later releases
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 2.1.1 | I modified the date handling to follow MATLAB guidance on "Replace Discouraged Instances of Serial Date Numbers and Date Strings." |
|
|
| 2.1 |
|
