Challenge

Project - Data Handling and Interpolation

fileID = fopen('interpol.txt','w');
%opening a text file for writing the interpolated data
voltage=xlsread('V.xlsx');
%reading voltage data from excel and values are written in the variable
current=xlsread('I.xlsx');
%reading current data from excel and values are written in the variable
x=-17.3:0.1:0.9;
%setting range of interpolation
vv=interp1(voltage,current,x);
%interpolating the values of voltage ad current
plot(voltage,current,'o',x,vv,':');
%plotting the values of voltage current in 'o'
grid;
xlabel('voltage');
ylabel('current');
title('voltage vs current')
%labelling the x and y and giving title
fprintf(fileID,'%f','vv');
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.