% Schematic39.m %
clf; clear;
Nx=100;
h=2*pi/Nx;
x = linspace(0.5*h, 2*pi-0.5*h, Nx);
fs = 18;
hold on
line([0 2*pi],[0 0],'color','k','linewidth',1.5); 
ss = 0.1;
t=14;
i = 1; line([x(i)-0.5*h x(i)-0.5*h],[-ss ss],'color','k', ...
    'linewidth',1.5); 
i = t/2; plot(x(i),0,'o','color','k', ...
    'linewidth',1); 
i = t+1; line([x(i)-0.5*h x(i)-0.5*h],[-ss ss],'color','k', ...
    'linewidth',1.5); 
i = t+t/2+1; plot(x(i),0,'o','color','k', ...
    'linewidth',1); 
i = 2*t+1; line([x(i)-0.5*h x(i)-0.5*h],[-ss ss],'color','k', ...
    'linewidth',1.5); 
i = Nx-2*t+1; line([x(i)-0.5*h x(i)-0.5*h],[-ss ss],'color','k', ...
    'linewidth',1.5); 
i = Nx-t+1; line([x(i)-0.5*h x(i)-0.5*h],[-ss ss],'color','k', ...
    'linewidth',1.5);
i = Nx; line([x(i)+0.5*h x(i)+0.5*h],[-ss ss],'color','k', ...
    'linewidth',1.5);

text('Interpreter','latex','String','$$0$$',...
    'Position',[-0.1 0.5053],'FontSize',fs)
text('Interpreter','latex','String','$$2\pi$$',...
    'Position',[2*pi-0.2 0.5053],'FontSize',fs)
s=-0.4;
text('Interpreter','latex','String','$$x_{_1}$$',...
    'Position',[0.3 s],'FontSize',fs)
text('Interpreter','latex','String','$$x_{_2}$$',...
    'Position',[1.2 s],'FontSize',fs)
text('Interpreter','latex','String','$$\cdots$$',...
    'Position',[2.9 s],'FontSize',fs)
text('Interpreter','latex','String','$$x_{_{N_x-1}}$$',...
    'Position',[4.7 s],'FontSize',fs)
text('Interpreter','latex','String','$$x_{_{N_x}}$$',...
    'Position',[5.7 s],'FontSize',fs)
i = Nx-t-t/2; plot(x(i),0,'o','color','k', ...
    'linewidth',1); 
i = Nx-t/2; plot(x(i),0,'o','color','k', ...
    'linewidth',1); 


ss = 0.4;
line([x(t/2+1) x(t+t/2+1)],[0 0]+ss,'color','k','linewidth',1.0); 
plot(x(8),ss,'k<','MarkerEdgeColor','k', ...
    'MarkerFaceColor','k','MarkerSize',6);
plot(x(21),ss,'k>','MarkerEdgeColor','k', ...
    'MarkerFaceColor','k','MarkerSize',6);
text('Interpreter','latex','String','$$h$$',...
    'Position',[0.8 0.6312],'FontSize',fs)


axis off
axis image
axis([-.2 x(end)+0.5 -1 1])
set(gcf,'paperpositionmode','auto')

