Project - Data Handling and Interpolation
project
plot(VVolt,ImAmp,'-ob','MarkerFaceColor','r','linewidth',3); %plotting the graph
VV = interp1(VVolt,ImAmp) %using interpolation
VVolt=-17.3:0.1:0.9; % definig the data
xlabel('voltage');
ylabel('current');
fileid1=fopen('VI.xlsx','r'); %reading the file to get data
fifleid=fopen('VI.xlsx','w');
VV=[-17.2 -17.1 -13.8 13.5 -13.0 -12.5 -11 -9 -5.76 -6 -1 0.11 0.25 0.5 0.61]; %definig the resoected values
VVolt=-17.30:0.1:0.9;
c=interp1(VV,VVolt);
fopen(fileid1,'%d',VV)
figure
plot((-28:-14),VV,'o',VVolt,c,'*') %plotting the graph
ylabel('voltage');
xlabel('current');
legend('VV','C');
fileid1
fileid1 =
22
>> fifleid
fifleid =
23
>> file
file =
12