% Schematic15.m %
clf; clear; 
xr = 10; nx = 99; x = linspace(0, xr, nx+1); h = x(2)-x(1);
fs = 18;
hold on
line([x(1) x(end)+1],[x(1) x(1)],'color','k','linewidth',1.5); 
plot(x(end)+1,0,'k>','MarkerEdgeColor','k','MarkerFaceColor','k','MarkerSize',10);
ss = 0.2;
i = 1; line([x(i) x(i)],[x(1)-ss x(1)+ss],'color','k','linewidth',1.5); 
i = 14; line([x(i) x(i)],[x(1)-ss x(1)+ss],'color','k','linewidth',1.5); 
i = 33; line([x(i) x(i)],[x(1)-ss x(1)+ss],'color','k','linewidth',1.5); 
i = 50; line([x(i) x(i)],[x(1)-ss x(1)+ss],'color','k','linewidth',1.5); 
i = 80; line([x(i) x(i)],[x(1)-ss x(1)+ss],'color','k','linewidth',1.5);
i = 99; line([x(i) x(i)]-0.02,[x(1)-ss x(1)+ss],'color','k','linewidth',1.5);
text('Interpreter','latex','String','$$x_{_0}$$','Position',[-0.173 -0.5021 55.69],'FontSize',fs)
text('Interpreter','latex','String','$$x_{_1}$$','Position',[1.1 -0.5021 55.69],'FontSize',fs)
text('Interpreter','latex','String','$$x_{_{i-1}}$$','Position',[2.8 -0.5021 55.69],'FontSize',fs)
text('Interpreter','latex','String','$$x_{_i}$$','Position',[4.756 -0.5021 55.69],'FontSize',fs)
text('Interpreter','latex','String','$$x_{_{i+1}}$$','Position',[7.566 -0.5021 55.69],'FontSize',fs)
text('Interpreter','latex','String','$$x_{_{N_x}}$$','Position',[9.613 -0.5021 55.69],'FontSize',fs)
text('Interpreter','latex','String','$$0$$','Position',[-0.08307 0.5053 55.69],'FontSize',fs)
text('Interpreter','latex','String','$$x_{max}$$','Position',[9.2 0.55 55.69],'FontSize',fs+5)
text('Interpreter','latex','String','$$h_{i-1}$$','Position',[3.62 0.7312 59.78],'FontSize',fs)
text('Interpreter','latex','String','$$h_{i}$$','Position',[6.239 0.7312 59.78],'FontSize',fs)
text('Interpreter','latex','String','$$\cdots$$','Position',[1.8 -0.4021 55.69],'FontSize',fs)
text('Interpreter','latex','String','$$\cdots$$','Position',[8.6 -0.4021 55.69],'FontSize',fs)
ss = 0.35;
line([x(34) x(49)],[x(1) x(1)]+ss,'color','k','linewidth',1.0); 
line([x(51) x(79)],[x(1) x(1)]+ss,'color','k','linewidth',1.0); 
plot(x(34)+0.05,x(1)+ss,'k<','MarkerEdgeColor','k','MarkerFaceColor','k','MarkerSize',6);
plot(x(49)-0.05,x(1)+ss,'k>','MarkerEdgeColor','k','MarkerFaceColor','k','MarkerSize',6);
plot(x(51)+0.05,x(1)+ss,'k<','MarkerEdgeColor','k','MarkerFaceColor','k','MarkerSize',6);
plot(x(79)-0.05,x(1)+ss,'k>','MarkerEdgeColor','k','MarkerFaceColor','k','MarkerSize',6);
box on
axis off
set(gcf,'PaperPositionMode','auto')
axis image
axis([-.2 x(end)+1.2 -1 2])
