Challenge

Project - Data Handling and Interpolation

PROJECT

d=xlsread('VI.xlsx');
%xlsread read the data from the exel file.
v=d(:,1);
i=d(:,2);
x=-17.3:0.1:0.9;
y=interp1(v,i,x,'spline');
%interp1 syntex is used to interpolation.
figure(1)
plot(v,i,'o',x,y,'--')
xlabel('x');ylabel('y')
m=[x;y];
%writematrix syntex ysed to save the mat file into text file.
writematrix(m,'interpolation')
% save syntex save the matfile.
save('m.mat','m')
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.