Challenge

Project - Data Handling and Interpolation

clear;
clc;
D=xlsread('VI'); % xlsread for reading the given excel file
v=D(:,1); % voltage data seperating
i=D(:,2); % current data seperating
xq=[-17.3:0.1:0.9]; % xq is the given interpolation range
yq=interp1(v,i,xq); % yq is the linear interpolation
figure(1)
plot(v,i,'s',xq,yq,'b-'); % plot used for ploting the graph
title('Linear Interpolation');
xlabel('Voltage (V)');
ylabel('Current (I)');
legend('Actual Value', 'Interpolated value', 'location','Northeast');
grid;
vol_cu=fopen(['matlab_project.txt'],'w');
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.