Project - Data Handling and Interpolation
VI=readtable('VI.xlsx');
%VI is excel file read
V=xlsread("VI.xlsx",1,'A2:A25');
%V is voltage data from excel file
I=xlsread("VI.xlsx",1,'B2:B25');
% I is current data from excel file
p0=input('missing value or add value V :');
%p0 find out missing data i.e 0.1 or 0.9
n=length(V);
%n is length or number of value
%AX=B X=inv(A)*B
B=I;
for i=1:n
for j=1:n
A(i,j)=V(i)^(j-1);
end
end
Q=A\B
%A\STAND FOR INVERSE OF A
P=flipud(Q)
AA=polyval(P,p0)
%AA is missing value(I)
X=linspace(V(1),V(n),100);
Y=polyval(P,X);
plot(X,Y,'--')
hold on
plot(V,I,'o')
hold on
plot(p0,AA,'*r')
%missing point is *in red color