Project - Data Handling and Interpolation
In a laboratory experiment, data of voltage and current has been recorded and the same is attached in an excel file ( Click on this link VI.xlsx ). Read the excel file in the Matlab program and perform the interpolation in the range of -17.3:0.1:0.9. Generate the interactive plot for the interpolated data and store them in a text file.
Matlabcode answer:
f = xlsread('data.xlsx');
x = f(:,1);
y = f(:,2);
xq = -17.3:0.1:0.9;
vq = interp1(x,y,xq);
plot(xq,vq); xlim([-17.3 0.9]);
ylabel('Interpolated data');
title('Data interpolation');
dlmwrite('interpolated_data.txt',vq,'delimiter','\t');
Results:

