Project - Data Handling and Interpolation
Data=xlsread('Voltamps.xlsx'); % Reading data from excel file
V=Data(:,1);A=Data(:,2);
x=[-17.3:0.9];
xq=[-17.3:0.1:0.9];
y=interp1(V,A,xq,'spline'); % Interpolation of data
plot(V,A,'o',xq,y,'r');
grid;
xlabel('Voltage (V)');ylabel('Ampears (A)');
writematrix(y,'Interpolated_Data.txt'); % Writing the data to txt file