Project - Data Handling and Interpolation
Matlab Code:
Data = xlsread('VI.xlsx');
V = Data(;,1);
I = Data(;,2);
T = -17.3:0.1:0.9;
x = interp1(V,I,T,spline');
plot(V,I,'r',T,x);
InterV = [];
Z = [InterV InterI];
fileID = fopen('interVinterI.txt','w');
fclose(fileID);
xlabel('voltage',V);
ylabel('current',I);
title('V vs I');
Explanation:
In this matlab program, the data are read from the excel format in the '.xlsx' format and stored it data. then read the data in the excel sheet and stored it V,I,T variables simultaneuosly. and now interpolation format is accuquired in the format and it is super polination line with in it, further it is plotted in the graph. then we get the values from the x that is in vector format. and we further proceed with the Z variable with combine values will be return in same vector format. 'fileID' in the interpolation of an .txt format in a regular existing format. file can be closing with 'fclose' function and all the labeling work can done with the xlabel,ylabel,title.
therefore, that how it works..