Challenge

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".
  1. %Read the voltage and current data recorded in an excel file
  2. clc
  3. data = xlsread('VI.xlsx');
  4. V = data(:,1);
  5. I = data(:,2);
  6. subplot(221);
  7. plot(V,I,'b*');grid
  8. xlabel('Voltage V');
  9. ylabel('Current I');
  10. title('Given Data');
  11. V1 = -17.3:0.1:0.9;
  12. I1 = interp1(V,I,V1);
  13. subplot(222);
  14. plot(V1,I1,'r*');grid;
  15. xlabel('Voltage V');
  16. ylabel('Current I');
  17. title('Interpolation Data')
  18. data1 = [];
  19. data1(:,1) = V1;
  20. data1(:,2) = I1;
  21. data1
  22. filename = fopen('V1I1.txt','w');
  23. fprintf(filename,'%f\n',data1);
  24. 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.
Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.