Challenge

Project - Data Handling and Interpolation

m = xlsread("VI.xlsx"); %reading excel file
v = m(:,1); %reading Voltage v in coloumn 1
i = m(:,2); %reading Current i in coloumn 1
x = (-17.3:0.1:0.9); %creating interpolation
y = interp1(v,i,x,'spline');
plot(v,i,'-r',x,y,'y'); % plotting 2D
grid on
title('Voltage vs Current'); %creating title for 2D graph
legend('vi','interpolation');
xlabel('Voltage');
ylabel('Current');

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.