Challenge

Project - Data Handling and Interpolation

solution
clc;
close all;
clear all;
%using xlsread command to read the excel file
data1=xlsread('voltage.xlsx')
t=data1(:,1);%input data
y=data1(:,2);%input data
plot(t,y,'b*');% plotting command is used
t1=[-17.3:0.1:0.9]
y1=interp1(t,y,t1);%interpolation command is used
hold
plot(t1,y1,'r-')%plotting command is used
fileID=fopen('project_out.txt','w');% saving the file in text format
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.