Challenge

Project - Data Handling and Interpolation

PROJECT CODE:
load('electric.mat','VI3'); % it loads the values of the excel sheet
voltage=VI3.VVolt; % takes the values of voltage from the excel sheet
current=VI3.ImAmp; % takes the values of current from the excel sheet
fileID=fopen('interpol.txt','w'); % creates a text file and saves the interpolated values
change_val=[-17.3:0.1:0.9]; % the range for interpolation
xq=interp1(voltage,current,change_val);%interpolation is done
figure(1);
plot(voltage,current,'*',change_val,xq,'--');%plotting of the graph
title('V-I interpolation');
print('V-I interpolation','-dpdf');%save the graph as a pdf
grid;
xlabel('voltage(Volts)');
ylabel('current(mAmp)');
fprintf(fileID,'%f','xq');% writes the interpolated values in the text file
PROJECT OUTPUT:
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.