% Schematic19.m %
clear; clc; clf;
plot([0 10],[0 0],'k-','linewidth',1.0)
hold on
plot([0 10],[1 1],'k-','linewidth',1.0)
plot([0 0],[0 1],'k-','linewidth',1.0)
plot([2.3 2.3],[0 1],'k-','linewidth',1.0)
plot([5.4 5.4],[0 1],'k-','linewidth',1.0)
plot([7.7 7.7],[0 1],'k-','linewidth',1.0)
plot([10 10],[0 1],'k-','linewidth',1.0)
cc=1.5;
plot([0 2.8],[0 0],'k-','linewidth',cc)
plot([2.64 2.8],[0.13 0],'k-','linewidth',cc)
plot([2.64 2.8],[-0.13 0],'k-','linewidth',cc)
plot([0 0],[0 1.3],'k-','linewidth',cc)
plot([0 0.13],[1.3 1.14],'k-','linewidth',cc)
plot([0 -0.13],[1.3 1.14],'k-','linewidth',cc)
plot([0 10],[2 2]-0.5,'k-','linewidth',1.0)
plot([9.84 10],[2.13 2]-0.5,'k-','linewidth',1.0)
plot([9.84 10],[1.87 2]-0.5,'k-','linewidth',1.0)
plot([0.16 0],[2.13 2]-0.5,'k-','linewidth',1.0)
plot([0.16 0],[1.87 2]-0.5,'k-','linewidth',1.0)
plot([11 11]-0.6,[0 1],'k-','linewidth',1.0)
plot([11 11.13]-0.6,[1 0.84],'k-','linewidth',1.0)
plot([11 10.87]-0.6,[1 0.84],'k-','linewidth',1.0)
plot([11 11.13]-0.6,[0 0.16],'k-','linewidth',1.0)
plot([11 10.87]-0.6,[0 0.16],'k-','linewidth',1.0)
bb=12; kk=40;
plot([10 8.7],[0 -1.3*tan(50*pi/180)],'k-','linewidth',cc)
plot([5.38 6.8],[-1.5 -1.5],'k-','linewidth',cc) 
plot([5.2 5.36]+0.18,[0 0.13]-1.5,'k-','linewidth',cc)
plot([5.2 5.36]+0.18,[0 -0.13]-1.5,'k-','linewidth',cc)
plot([6.8 6.8],[-1.5 -3.2],'k-','linewidth',cc) 
plot([0 0.13]+6.8,[-3.1 -2.94]-0.1,'k-','linewidth',cc)
plot([0 -0.13]+6.8,[-3.1 -2.94]-0.1,'k-','linewidth',cc)
plot([5.4 6.8],[-1.5-1.4*tan((90-kk)*pi/180)-1.5],'k-','linewidth',cc)
plot([5.4 5.4],[-1.5-1.4*tan((90-kk)*pi/180) -1.5-1.4*tan((90-kk)*pi/180)+0.25],'k-','linewidth',cc)
plot([5.4 5.65],[-1.5-1.4*tan((90-kk)*pi/180) -1.5-1.4*tan((90-kk)*pi/180)+0.05],'k-','linewidth',cc)
text('Interpreter','latex','String','$$x$$','Position',[2.4 -0.4],'FontSize',bb,'rotation',kk)
text('Interpreter','latex','String','$$y$$','Position',[-0.51 1.07],'FontSize',bb,'rotation',kk)
text('Interpreter','latex','String','$$L$$','Position',[4.9 2.35-0.5],'FontSize',bb,'rotation',kk)
text('Interpreter','latex','String','$$H$$','Position',[10.6 0.5],'FontSize',bb,'rotation',kk)
text('Interpreter','latex','String','$$\theta$$','Position',[5.83 -1.85],'FontSize',bb,'rotation',0)
text('Interpreter','latex','String','$$\mbox{fluid}~N$$','Position',[0.3 0.45],'FontSize',bb,'rotation',kk)
text('Interpreter','latex','String','$$\cdots$$','Position',[3.55 0.45],'FontSize',bb,'rotation',kk)
text('Interpreter','latex','String','$$\mbox{fluid}~2$$','Position',[5.8 0.45],'FontSize',bb,'rotation',kk)
text('Interpreter','latex','String','$$\mbox{fluid}~1$$','Position',[8.1 0.45],'FontSize',bb,'rotation',kk)
text('Interpreter','latex','String','$$g\cos\theta$$','Position',[5.65 -1.15],'FontSize',bb,'rotation',kk)
text('Interpreter','latex','String','$$g\sin\theta$$','Position',[7.15 -1.6],'FontSize',bb,'rotation',kk-90)
text('Interpreter','latex','String','$$\theta$$','Position',[8.95 -0.35],'FontSize',bb,'rotation',0)
text('Interpreter','latex','String','$${\bf g}$$','Position',[5.1 -3.3],'FontSize',bb,'rotation',0)
thet=linspace(0.0,2.0*pi,360);
radi=0.7;
plot(10+radi*cos(thet(180:230)),radi*sin(thet(180:230)),'k-');
thet=linspace(0.0,2.0*pi,360);
radi=0.6;
plot(6.8+radi*cos(thet(180:230)),-1.5+radi*sin(thet(180:230)),'k-');
axis image
axis off
annotation('line',[0.582142857142857 0.582142857142857],[0.59047619047619 0.440476190476191],'LineWidth',1.2);
camroll(kk)
set(gcf,'PaperPositionMode','auto')
