
Matlab plots data


figure(8)

x = [10 20 30 40 50 60];
y = [744 710 739 635 540 521];
y2 = [4.36 4.15  4.09 4.12 3.97 3.6];

phase = ((y2-3)*51/5+15.78)*2/180*pi*0.2;
ER1 = 10*log10((1+cos(pi/2-phase/2))./(1+cos(pi/2+phase/2)));
ER2 = 10*log10((1+cos(pi/2-phase/4))./(1+cos(pi/2+phase/4)));

figure % new figure
plot(x,ER1*1000);hold on
plot(x,ER2*1000);hold on
[hAx,hLine1,hLine2] = plotyy(x,y,x,y2); hold on;

% title('Multiple Decay Rates')
xlabel('Data rates')

ylabel(hAx(1),'ER of Optical Eyediagram (mdB)') % left y-axis 
ylabel(hAx(2),'Applied RF signal Vpp (V)') % right y-axis


figure(8)

x = [0 1 2 3 4 5 6]
y = [654 648 647 659 670 701 727] 

% y = (y - 654)./654*100;

plot(x,y);
xlabel('Applied DC bias (V)')
ylabel('Optical Eyediagram ER Variations (%)') % left y-axis 

set(gca,'TickLength',[0.02, 0.01])