Project - Data Handling and Interpolation
A=xlsread('VI.xlsx');% to read the given file
V=A(:,1);%assume the value of 1 column
I=A(:,2);%assume the vale 2 column
Vq=-17.3:0.1:0.9;% interpolatin value
Iq1=interp1(V,I,Vq); % Linear interpolation
Iq2=interp1(V,I,Vq,'spline'); % Spline interpolation
figure(1);
plot(V,I,'*',Vq,Iq1,':');
grid;
title('Linear interpolation');
figure(2);
plot(V,I,'*',Vq,Iq2,':');
grid;
title('spline interpolation');