function y=latdecode(latx)

x1=floor(latx/100);
x2=latx-100*x1;
x3=x1+x2/60;
ii=find(latx<0);
    x1(ii)=ceil(latx(ii)/100);
    x2(ii)=latx(ii)-100*x1(ii);
    x3(ii)=x1(ii)+x2(ii)/60;

y=x3;

