Challenge

Project - Data Handling and Interpolation

%Loading excel data file
M=readmatrix("VI.xlsx");  
V=M(:,1);
I=M(:,2);
Vq=-17.3:0.1:0.9;
Iq=interp1(V,I,Vq,'linear') %liner interpolation
plot(V,I,Vq,Iq,'r*')       %Plot the values 

Command window results :

Missing data :

Workspace results:

Linear polation

Determining the plot throgh spline method

%Loading excel data file
M=readmatrix("VI.xlsx");  
V=M(:,1);
I=M(:,2);
Vq=-17.3:0.1:0.9;
Iq=interp1(V,I,Vq,'spline') 
plot(V,I,Vq,Iq,'r*')  

Command window results:

Plot results:

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.