Challenge

Project - Data Handling and Interpolation

clear all;
clc;
r=xlsread("VI.xls"); %for reading of data from xls file of VI
V=r(:,1); % to read the first column of excel file
I=r(:,2); % to read the 2nd column of excel file
xq=[-17.3:0.1:0.9]; % given interval for data
yq=interp1(V,I,xq,'linear'); %interpolation of value of V & I using linear
plot(V,I,'o',xq,yq,'g--'); % for plotting
xlabel('Voltage V');ylabel('Current I'); % for x and y labeling
legend('original one','interploated one');title('linear interpolation');
save project4_1.txt V I %for saving project4_1.mat file
fid=fopen('project4_1.txt','w'); % to open and wrint the project4_1.txt
fprintf(fid, '%d\n',yq)
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.