Project - Data Handling and Interpolation
ans(project)..
X= xlsread("VI.xlsx"); %reading data from a text file
V= X(:,1); %updating voltage as V from first column
I= X(:,2); %updating current as I from second column
xq= [-17.3:0.1:0.9]; %range of interpolation
Z= interp1(V,I,xq); %defing interp1 function for 1-D
writematrix(Z,"interpolated_data.txt"); % write the data into a text file named'interpolated_data.txt'
plot(V,I,"O");
hold on;
plot(xq,Z,"--m"); %plot linear interpolation