All Courses
All Courses
Project : In a laboratory experiment, data of voltage and current has been recorded and the same is attached in an excel file ( Click on this link VI.xlsx ). Read the excel file in the Matlab program and perform the interpolation in the range of -17.3:0.1:0.9. Generate the interactive plot for the interpolated…
MOHAMMAD FAYAZ
updated on 22 Nov 2022
Project :
In a laboratory experiment, data of voltage and current has been recorded and the same is attached in an excel file ( Click on this link VI.xlsx ). Read the excel file in the Matlab program and perform the interpolation in the range of -17.3:0.1:0.9. Generate the interactive plot for the interpolated data and store them in a text file.
clc;
clear all;
x=xlsread('VI.xlsx','Sheet1'); %% loading data from excel sheet 1
vvolt=x(:,1);
ImAmp=x(:,2);
vv=interp1(vvolt,ImAmp);
figure(1)
plot(vvolt,ImAmp,'-ob');grid;hold;
xlabel('volt');ylabel('Amps');
legend('interpolation of volt and Amps');
title('interpolation of data from excel sheet');
print('output_interp from xlsx data','-dpdf');
fileid1=fopen('C:\Users\fayaz\OneDrive\Desktop\week 4 challange','r');
fileid=fopen('C:\Users\fayaz\OneDrive\Desktop\week 4 challange','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('%d',VV);
figure(2)
plot((-28:-14),VV,'o',VVolt,c,'-');grid;
xlabel('volt');ylabel('Amps');
legend('VV','c');
title('interpolation of VV and VVolt');
print('output_interp of VV and VVolt','-dpdf');
Leave a comment
Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.
Other comments...
Project - Data Handling and Interpolation
Project : In a laboratory experiment, data of voltage and current has been recorded and the same is attached in an excel file ( Click on this link VI.xlsx ). Read the excel file in the Matlab program and perform the interpolation in the range of -17.3:0.1:0.9. Generate the interactive plot for the interpolated…
22 Nov 2022 07:33 AM IST
Related Courses
0 Hours of Content