Project - Data Handling and Interpolation
clc
clear;
EL = xlsread('VI data.xlsx','Sheet1','A2:B25'); %Importing the excel data.
V= EL(:,1); % Initializing voltage values to V
I= EL(:,2); % Initializing Current values to I
t= -20:0.5:15;
figure(1)
plot(t,V, 'r-'); %Voltage plot command.
hold on;
plot(t,I, 'k-'); %Current plot command.
grid on
title('LABORATORY EXPERIMENT'); %title and label command for the graph.
xlabel('CURRENT(Amp)');
ylabel('VOLTAGE(Volts)');
print('IV.m','-djpeg');