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