Project - Data Handling and Interpolation
PROGRAM
%%Data handling project
a=xlsread('VI.xlsx');%to get the from the excel
v=a(:,1);%for assuming v as voltage
i=a(:,2);%for assuminf i as current
z=[-17.3:0.1:0.9];%data required from this range
yq1=interp1(v,i,z);
yq2=interp1(v,i,z,'spline');
plot(v,i,'o',z,yq1,'m-');
plot(v,i,'o',z,yq2,'b');
grid;
save yq1.txt;
OUTPUT DATA:
The output data has been attached along with the plot.