Challenge

Project - Data Handling and Interpolation

Data=xlsread('Voltamps.xlsx'); % Reading data from excel file
V=Data(:,1);A=Data(:,2);
x=[-17.3:0.9];
xq=[-17.3:0.1:0.9];
y=interp1(V,A,xq,'spline'); % Interpolation of data
plot(V,A,'o',xq,y,'r');
grid;
xlabel('Voltage (V)');ylabel('Ampears (A)');
writematrix(y,'Interpolated_Data.txt'); % Writing the data to txt file
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.