%plots spectrum in nm

%clear
%close all
%load('dat_i17_f2LGa');

y=x5v;
x=[1:256];

%ax2+bx+c. slope*x+offset
slope17=4.1176; %slope [nm/pixel]
offset17=890.5037; %offset [nm]
w17a=slope17*x+offset17;
a17=-0.000078;
b17=4.134;
c17=889.9697;
w17b=a17*x.^2+b17*x+c17;

figure; plot(w17b,y,'-'); 
axis([800 2000 0 4]); 
grid on; grid minor
title('I1.7'); xlabel('Wavelength [nm]'); ylabel('A/D In [volts]');
