Project - Data Handling and Interpolation
at first load the data to matlab define the value to v and i define the value as given in the question .. this a 2D plot that only provide a missing value and given value to the in that graph..
[data]=xlsread('VI.xlsx');%read data from file
v=data(:,1);% v for column 1
i=data(:,2);%%i for column 2
x=-17.3:0.1:0.9;% start value and end value with a interval
y=interp1(v,i,x,'spline');%interpole function between v,i,x
plot(v,i,'*');%ploting between v,i
hold on;plot(x,y,'_');% hold on the graphand in that plot add x,y plotting
title('interpolation V vs I');%give title to that graph
xlabel('X');% name to x plane
ylabel('Y');% name to y plane
VV=[-17.2;-17.1;-13.8;-13.5;-13;-12.5;-11;-9;-5.76;-6;-1;0.11;0.25;0.5;0.61]% take value from the graph
II=interp1(v,i,VV)%interpole between
z=[VV II];% get all value to z matrix
writematrix(z,'data.txt')% save file as data