Watch this Author's files
Using the data suggested in the initial comment of this m-file I received results different from the suggested results:
location.longitude = -105.1786; location.latitude = 39.742476; location.altitude = 1830.14; time.year = 2003; time.month = 10; time.day = 17; time.hour = 12; time.min = 30; time.sec = 30; time.UTC = -7;
sun = sun_position(time, location); % % sun = % % zenith: 50.1080438859849 % azimuth: 194.341174010338
RESULTS SEEN HERE:
>> sun sun = zenith: 50.107627161847546 azimuth: 1.943412241230940e+002
I am using MATLAB vs. 7.6.0.324 (R2008a). I wonder if there is anyone who has seen a comparable discrepancy and if/how this was resolved.
Regards
Contact us at files@mathworks.com