Project - Data Handling and Interpolation
Ans :- Here we have used the command 'interp1' for interpolation. The output xq1 is put to the text file called 'interpolation'.
Code for interpolation:
fileID = fopen('interpolation.txt')
x = ImAmp;
y = VVolt;
xq = [-17.3:0.1:0.9];
xq1 = interp1(y'x'xq);
figure(1);
plot(x,y,'o',xq,xq1,':');
grid;
fprintf(fileID,'%f','xq1');

OUTPUT;
