function [Altitude] = DF17_TC9_18_vyska(DF_bin)
% Data=('8D7806B458C3858151293D6CC0F4');
% DF_bin=hex2bin(Data);

AC=DF_bin(1,41:52);
QQ=AC(8);   

if QQ==0

   ALT=[AC(1:7) AC(9:12)];
   Altitude=polyval(ALT, 2); %x100ft = v nasobcich 100ft
    Altitude=Altitude.*100;
                
elseif QQ==1

    ALT=[AC(1:7) AC(9:12)];
    Altitude=polyval(ALT, 2); %x25ft = v nasobcich 25ft
    Altitude=(Altitude.*25)-1000;
end
end

