Project - Data Handling and Interpolation
%interpolate to find missing value;
intr = xlsread('VI.xlsx'); % Read excel file
v = [-17.3,-17.1,-17,-16.8,-16.5,-16,-15,-14,-12,-10,-8,-5,-2,-0.2,0.09,0.19,0.27,0.39,0.43,0.5,0.55,0.6,0.62,0.65]';
i = [-28,-24,-19,-14,-9,-6,-4,-3,-2,-1.3,-1,-0.6,-0.3,-0.1,0,0,0,0.01,0.03,0.17,0.42,1.23,1.99,3.91]';
xq = [-17.3:0.1:0.9]; % Generate the points
out_intr = interp1(v,i,xq); % interpolate the points
figure(1);
plot(v,i,'o',xq,out_intr,':');grid; % Plot the points
