Challenge

Project - Data Handling and Interpolation

clc
clear all
interpol=xlsread('vl.xlsx','sheet1','A2:B25')
%IMPORTING THE XLXS SHEET
FROM XL TO MATLAB
V=interpol(:,1);%assembling
voltage values from xl coloumn 1
I=interpol(:,2);assembling
current values from xl coloumn2
figure(1)
plot(v,I,'r');%plotting voltage vs current
x=-17.3:0.1:0.9;%asembling given
range in question
Y=interP1(V,I,X,'spline');
%interpolating the values
plot(V,I,'o',x,y);%ploting the
Interpolated values with the voltage vs current
title('interpolation voltage vs current');
V_1=interp(v,i,-17.2)%finding the interpolated values for given question
V_2=interp1(V,I,-17.1)
V_3=interp1(V,I,-13.8)
V_4=interp1(V,I,-13.5)
V_5=interp1(V,I,-13.0)
V_6=interp1(V,I,-12.5)
V_7=interp1(V,I,-11)
V_8=interp1(V,I,-9)
V_9=interp1(V,I,-5.76)
V_10=interp1(V,I,-6)
V_11=interp1(V,I,-1)
V_12=interp1(V,I,0.11)
V_13=interp1(V,I,0.25)
V_14=interp1(V,I,0.5)
V_15=interp1(V,I,0.61)
PARTB
Z=[-26.000-24-2.9000-2.7500
-2.5000-2.2500-1.6500-1.1500
-0.7013-0.7333-0.1889 0 0 0.1700
1.6100]
W=[-17.2-17.1-13.8-13.5-13.0-12.5
-11-9-5.76-6-1 0.11 0.25 0.5 0.6]
figure(2)
plot(Z,W,'R')
title('NEWPLOT')
xlabel('current')
ylabel('voltage')
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.