
clear,
%close all;
load('dat_insion1');
x1=r117v;
x2=r119v;

%ax2+bx+c. slope*x+offset
x=[1:256];
%1.7um
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;
%1.9um
slope19=4.1144; %slope [nm/pixel]
offset19=985.0274; %offset [nm]
w19a=slope19*x+offset19;
a19=-0.000197;
b19=4.1583;
c19=983.0781;
w19b=a19*x.^2+b19*x+c19;

figure; plot(w17b,x1,'-',w19b,x2,'-'); title('Insion Ref Sample');
xlabel('Wavelength [nm]'); ylabel('PD out [volts]');
legend('1.9um system', '1.7um system');

