Challenge

Project - Data Handling and Interpolation

Graphical solutions are more visual and appealing:

Code:

data=xlsread('VI.xlsx')
V=data(:,1)
I=data(:,2)
plot(V,I,'o')
xlabel('V')
ylabel('I')
X = (-17.3:0.1:0.9)
vq = interp1(V,I,X)
hold on
plot (X,vq,'--')
save X.txt
Interpolation of data:
vq = interp1(x,v,xq)formula is used to the interpolation
Read excel file:
V (Volt) I (mAmp)
-17.3 -28
-17.1 -24
-17 -19
-16.8 -14
-16.5 -9
-16 -6
-15 -4
-14 -3
-12 -2
-10 -1.3
-8 -1
-5 -0.6
-2 -0.3
-0.2 -0.1
0.09 0
0.19 0
0.27 0
0.39 0.01
0.43 0.03
0.5 0.17
0.55 0.42
0.6 1.23
0.62 1.99
0.65 3.91
Write to text file:
data=xlsread('VI.xlsx') // This is to define the data.
V=data(:,1) // argumet data value 1
I=data(:,2) // argumet data value 2
plot(V,I,'o') //plot function plot the graph
xlabel('V') // label is the (x) the name of the graph
ylabel('I') // label is the (y) the name of the graph
X = (-17.3:0.1:0.9) // X is the defined value
vq = interp1(V,I,X) //vq is the Interpolation
hold on
plot (X,vq,'--')
save X.txt //text file.txt
Conclusion:
To complete the all the voltage V and current I data from the excel file Data Handling and Interpolation to plot the interpolation of the wave from of graph.
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.