Challenge

Project - Data Handling and Interpolation

Project : Answer :

m- script :

a = xlsread('VI.xlsx') % xlsread file
v = a(:,1) % varible data
i = a(:,2) %varible data
x = -17.3: 0.1 :0.9
y = interp1(v,i,x) %interpuletd data
plot(v,i,'*',x,y) %ploting
iv = [-17.2
-13
-11
-9
-6
-1
0.11
0.25
0.5
0.61
0.66 ]
ii = interp1 (v,i,iv)
filename = fopen('Interpolate_data.txt','w')
fprintf(filename, '%f %f\n', 'iv','ii')
fclose(filename)
show in result :

figure :

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.