Project - Data Handling and Interpolation
filename = 'VI.xlsx'; %assign the excel file
V=xlsread(filename,'A2:A25'); %read the voltage values
I=xlsread(filename,'B2:B25'); %read the current values
range=[-17.3:0.1:0.9];
VI2=interp1(V,I,range); %interpolate the values
plot(V,I,'o',range,VI2,':');
grid;
title('Linear interpolation');
fileID = fopen('VI2.txt','w'); %Save the file as text file
fprintf(fileID, '%d',VI)
xlabel('Voltage');
ylabel('Current');
