Project - Data Handling and Interpolation
AIM: In a laboratory experiment, data of voltage and current has been recorded and the same is attached in an excel file (VI.Xlsx). Read the excel file in the Matlab program and perform the interpolation in the range of -17.3:0.1:0.9. Generate the interactive plot for the interpolated data. Additionally, compute the current values for given voltages below and store them in a text file.
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]’
ANSWER:
plot(VVolt,ImAmp,'-ob','MarkerFacecolor','r','linewidth',3);
VV = interpl(VVolt,ImAmp)
VVolt=-17.3:0.1:0.9;
xlabel('voltage');
ylabel('current');
USING MATLAB:




fileidl=fopen('C:\users\sudheer\Documents\week3.xlsx','r');
fileid=fopen('C:\users\sudheer\Documents\Matlab basics\project.txt','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];
VVolt=-17.3:0.1:0.9;
c=interpl(VV,VVolt);
printf(fileid,'%d',VV)
figure
plot((-28:-14),VV,'o',VVolt,c,'*');
ylabel('voltage');
xlabel('current');
legend('VV','c');
Above programme in MATLAB:

OUTPUT:

VOLTAGE&CURRENT PLOT:


CONCLUSION:
We have succesfullt complete the given project with relevent script files and also plot its graphs.and make the Exceel sheet for the voltage and current values