Challenge

Project - Data Handling and Interpolation

clc
file1=fopen('voltage_data.txt','w')
fprintf(file1,'%f',cI)
octomber=xlsread('voltage_data.xlsx','sheet1','A1:B25');
% voltage and current varient data
v=octomber(:,1);
c=octomber(:,2);
% interpolating current vauees
vI = [-17.2,-13,-11,-9,-6,-1,0.11,0.25,0.5,0.61,0.66];
cI = interp1(v,c, vI)
vq=-17.3:0.1:0.9
cq=interp1(v,c,vq)
figure(1)
plot(v,c,'+');
hold;
plot(vI,cI,'*')
xlabel('current');
ylabel('voltage');
title('current interpolation');
figure(2)
plot(v,c,'*')
hold;
plot(vq,cq,'+')
xlabel('current');
ylabel('voltage');
title('current interpolation');
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.