function plotit_30 b = 30; n1 = 1.3; input = 0; n2 = 1.1:0.01:1.5; s = size(n2); a1 = [0 30 45]; for i = 1:3, for t = 1:s(2), r(t) = n2(t); d(t,i) = deviation(input,a1(i),a1(i),b,n1,n2(t)); end; end; plot(r,d) line([1.1 1.5],[0 0],'LineStyle','-.'); line([1.3 1.3],[-20 20],'LineStyle','-.'); text(1.12,27,'First tapered plate index of refraction = 1.30',... 'FontSize',10,'FontWeight','demi'); text(1.12,25,'Interface angle = 30 degrees',... 'FontSize',10,'FontWeight','demi'); text(1.31,-5,'---- Both block angles = 0 degrees','color','b',... 'FontSize',10); text(1.31,-7.5,'---- Both block angles = 30 degrees','color',[0 .6 0],... 'FontSize',10); text(1.31,-10,'---- Both block angles = 45 degrees','color','r',... 'FontSize',10); xlabel('Second tapered plate index of refraction','color','b',... 'FontSize',12,'FontWeight','demi'); ylabel('Angular deviation from horizontal','color','b',... 'FontSize',12,'FontWeight','demi'); title('Angular Deviation Provided by "Light Guiding Device"','color','r',... 'FontSize',14,'FontWeight','demi');