Challenge

Project - Data Handling and Interpolation

clc; %to clear the screen
clear all; %to clear the variables from workspace
data = xlsread('VI_project.xlsx'); %opening excel file
V = data(:,1); %reading first column
I = data(:,2); %reading 2nd column
x = -17.3:0.1:0.9; %define range for interpolation
subplot(211)
plot(V,I,'b+')
legend('Data Stored')
title('Data information')
Z = interp1(V,I,x); %Interpolation command used
subplot(212)
plot(Z,'r--')
title('MISSING DATA POINTS FOUND BY INTERPOLATION')
legend('MISSING DATA POINTS IN CURVE')
figure(2)
plot(V,I,'*b',x,Z,'b--');
title('FINAL CURVE BY INTERPOLATION')
legend('DATA POINTS PROVIDED','MISSING DATA POINTS')
1 comment
  1. Hariharan Vis this your 1st challenge ?
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.