Project - Data Handling and Interpolation
clc
[num,txt]=xlsread('C:\Users\sree\Downloads\VI.xlsx','Sheet1','A2:B16')
V=num,txt(:,1)
V=num(:,1)
I=num(:,2)
t=-17.3:0.1:0.61
figure(1)
plot(I,V);
title('current v/s Voltage')
hold on;
VV=linspace(-17.3,0.1,0.9);
fileID=fopen("C:\Users\sree\Downloads\VI.txt","w");
VV=[-17.2 -17.1 -13.8 -13.5 -13.0 -12.5 -11 -9 -5.76 -6 -1 0.11 0.25 0.5 0.61];
R=10;
for I= VV/R
fprintf(fileID,'VV(%d)=%d\n','I','VV');
end
fclose(fileID);