Project - Data Handling and Interpolation
%% data of voltage and current
xyz=xlsread('VI.xlsx'); %read the excel file
VVolt=xyz(:,1); % value from excel sheet 1 first column
ImAmp=xyz(:,2); % value from excel sheet 1 second column
plot(VVolt,ImAmp,'LineWidth',3);

%%interpolation in the range of -17.3:0.1:0.9
diary b.txt % create & write in txt file
x=(-17.3:0.1:0.9)
y=[-17.2 -13 -11 -9 -6 -1 0.11 0.25 0.5 0.61 0.66] %value from excel sheet 2
temp = interp1(x,y) %interpolation 1 d
tempDouble = [missing missing missing missing missing missing missing missing missing missing missing]
diary off % close txt file