dataset1 = xlsread('C:\Users\Admin\Desktop\data1.xlsx','Sheet1');
x1=dataset1(:,1);
y1=dataset1(:,2);
p1=plot(x1,y1,'Color','blue');
fontSize=15;
title('Fibreoptic sensor output (Volts) v/s distance (mm)', 'FontSize', fontSize);
grid on;
xlabel('distace between the sensor tip and the cantilever (mm)', 'FontSize', fontSize-5);
ylabel('Sensor output (Volts)', 'FontSize', fontSize-5);
legend on;
dataset1a=xlsread('C:\Users\Admin\Desktop\data1.xlsx','Sheet1','A1:C21');
x1a=dataset1a(:,1);
y1a=dataset1a(:,2);
hold on
p1a=plot(x1a,y1a,'Color','blue')
hold on
dataset1b=xlsread('C:\Users\Admin\Desktop\data1.xlsx','Sheet1','A22:C69');
x1b=dataset1b(:,1);
y1b=dataset1b(:,2);
hold on
p1b=plot(x1b,y1b,'Color','red')
hold on
0 Comments
Sign in to comment.