No BSD License  

Highlights from
Skyplot1001

image thumbnail
from Skyplot1001 by Markus Penzkofer
Virtual Planetarium showing stars, the planets, the sun and the moon.

AG=gms2alt(AH,AM,AS)
function AG=gms2alt(AH,AM,AS)

% function AG=gms2alt(AH,AM,AS)
%
% conversion from degrees, minutes, seconds in degrees decimal
%
% 05.05.04 M.Penzkofer

if (AH < 0 | AM < 0 | AS < 0)
   signum = -1;
else
   signum = 1;
end
AG = signum*(abs(AH)+abs(AM)/60+abs(AS)/3600);

Contact us at files@mathworks.com