Challenge

Project - Data Handling and Interpolation

project:

To he 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.

Matlab progarm:

from the beginning need to import the exel file to matlab.

------------xxxxxxxxxxxxxx-------------

project program.

% clc
% clear all
% clc and clear cmt is not used here because that clears imported exl file
plot(VVolt,ImAmp,'-or','MarkerFacecolor','black','linewidth',3);
%to plot a vvolt and ImAmp data of givrn VI xls.
VV = interp1(VVolt,ImAmp) %interpolation of VVolt and ImAmp
VVolt=-17.3:0.1:0.9; %interpolation in the range
xlabel('voltage'); %label of x
ylabel('current'); %label of y
----------xxxxxxxxxxxxxxx----------------
progam for text file
fileidl=fopen('F:\matlab\matlab\project\VI.xlsx','r');
%to open the file VI.xlsx
fileid=fopen('F:\matlab\matlab\project\interpolated_data.txt','w');
%to creat atext file to store interpolated data
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'); %label of y
xlabel('current'); %label of x
legend('VV','c');
------------------xxxxxxxxxxx--------------------------
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.