Challenge

Project - Data Handling and Interpolation

PROJECT-01.

data=xlsread('VI (1).xlsx'); %taken data from the xlsx sheet
v=data(:,1); %where v is the voltage
i=data(:,2); %where i is the current
x=[-17.3:0.1:0.9];
y=interp1(v,i,x,"linear");
plot(v,i,'*r',x,y,'-y');
fileID=fopen('labdata.txt','w');
%saving file in text file
fprintf(fileID,'%8s %13s\n','v(volt)','i(mAmp)');
fclose(fileID);
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.