Challenge

Project - Data Handling and Interpolation

AIM:-

DataHandling and Interpolation using matlab

Overview:-
f = xlsread('VI.xlsx');%Reading the xlsx file
V = f(:,1);%storing first column value of 'f' in 'V'
I = f(:,2);%storing second column value of 'f' in 'A'
Vinp = -17.3:0.1:0.9;% Creating Given Range of Voltage Data mentioned in problem
Iinp = interp1(V,I,Vinp,"spline");% Using 'interp1' function for calculating Current value for given %Voltage Range 'Vinp'
Program:-

plot(VVolt,ImAmp,'-ob','MarkerFaceColor','r','linewidth',3);
VV = interp1(VVolt,ImAmp)
VVolt=-17.3:0.1:0.9;
xlabel('voltage');
ylabel('current');

Write to text file:

fileid1=fopen('D:\MATLAB PROJECTS\week3\VI.xlsx','r')
fileid=fopen('C:\Users\rubyr\Desktop\mat_project.txt','w')
VV =[-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.61 ];
VVolt=-17.3:0.1:0.9;
c=interp1(VV,VVolt);
fprintf(fileid,'%d',VV)
figure
plot((-28:-14),VV,'o',VVolt,c,'*');
ylabel('voltage');
xlabel('current');
legend('VV','c');

https://drive.google.com/file/d/13GRKQiwkgWcRKnUTSzeKORznKDvB66HG/view?usp=sharing

https://drive.google.com/file/d/1Hv_g0IdwxUrurbKxWpMXIDBmvmU5eKAf/view?usp=sharing,

https://drive.google.com/file/d/1OYWnE6FArNZI0TTH5DCOqwrXix8F9pka/view?usp=sharing

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.