Project - Data Handling and Interpolation
Ans
Here we have used the commond 'interpl' for the interpolation . the output xql is put to the text file called 'interpolation'
Code for interpolation
% open the text file to write the output
% define a variable x from excel file
% define a variable y from excel file
% define the range for interpolation
% interpolation
% plotting the interpolation
% print the output xq1 to the file transfer
fileID = fopen('interpolation.txt', 'w');
x = ImAmp;
y = VVolt;
xq = [-17.3:0.1:0.9];
xq1 = interp1(y,x,xq);
figure(1);
ploot(x,y,'o',xq,xq1,':');
grid;
fprintf(fileID,'%f','xq1');