Challenge

Project - Data Handling and Interpolation

Ans=1

VI = xlsread('VI.xlsx') % used to read excel file
x = VI(:,1) % use to short column1
y = VI(:,2) % use to short column2
xq=[-17:0.1:0.9]; % range
yq1=interp1(x,y,xq); % Linear interpolation
yq2=interp1(x,y,xq,'spline'); % Spline interpolation
figure(1);
plot(x,y,'o',xq,yq2,':');
grid;
title('Linear interpolation'); % use to specify title
figure(2);
plot(x,y,'o',xq,yq2,'--');
grid;
title('Spline Interpolation');
fid = fopen('vi_interpolation.txt','w'); % use to create and write txt file
len = length(VI);
fori = 1:len,
fprintf(fid,'%d','VI'); % use for re run in diff formate
fclose(fid);
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.