Challenge

Project - Data Handling and Interpolation

data = xlsread('VI.xlsx');% Read the excel file
x = data(:,1);% Interpolate the data set
y = data(:,2);
xi = -17.3:0.1:0.9;
yi = interp1(x,y,xi);
figure;% Generate the interactive plot
plot(x,y,'o',xi,yi);
title('Interpolated Data Set');
xlabel('Voltage');
ylabel('Current');
legend('Measured Data','Interpolated Data');
fid = fopen('Interpolated_Data.txt','wt');% Save the interpolated data to a text file
for i=1:length(xi)
fprintf(fid,'%f\t%f\n',xi(i),yi(i));
end
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.