Project - Data Handling and Interpolation
text_file = fopen('interpolation.txt','w'); %to open text file
fid = xlsread('VI.xlsx'); % to open csv file
x = fid(:,1);
y = fid(:,2);
int_pol = -17.3:0.1:0.9;
y_out = interp1(x,y,int_pol,'spline');
plot(x,y,'o',int_pol,y_out);
grid;
fprintf(text_file,'%f','y_out');