Project - Data Handling and Interpolation
1.)
- The given excel file has been read in the program, analysed and plotted a graph with the data.
- Performed interpollation of the data in the range -17.3:0.1:0.9.
- An interactive plot has been generated with the interpollated data.
- The missing data has been saved in a text file named "V1I1.txt".
- %Read the voltage and current data recorded in an excel file
- clc
- data = xlsread('VI.xlsx');
- V = data(:,1);
- I = data(:,2);
- subplot(221);
- plot(V,I,'b*');grid
- xlabel('Voltage V');
- ylabel('Current I');
- title('Given Data');
- V1 = -17.3:0.1:0.9;
- I1 = interp1(V,I,V1);
- subplot(222);
- plot(V1,I1,'r*');grid;
- xlabel('Voltage V');
- ylabel('Current I');
- title('Interpolation Data')
- data1 = [];
- data1(:,1) = V1;
- data1(:,2) = I1;
- data1
- filename = fopen('V1I1.txt','w');
- fprintf(filename,'%f\n',data1);
- fclose(filename);
- The files named "matlab_basics_main_project.m" is the above matlab program, "VI_data.png" is the screenshot of the run program.