% Schematic22.m %
clf;clear; Smax = 300;E = 100;
x = linspace(0, Smax);Nx = length(x);
for i = 1:Nx
    u(i) = max(x(i)^2,0);
end
hold on
figure(1)
plot(x,u,'k-'),plot(x,u+20000,'k:')
plot([x(10),x(50),x(90)],[u(10)+20000,u(50)+20000,u(90)+20000],'ko','markersize',10)
axis([0 Smax -0.1*u(end) 1.3*u(end)])
set(gca,'xtick',[]);set(gca,'ytick',[]);
box off;fs = 16;
annotation('textbox',[0.7325 0.4590 0.0415 0.0651],'String',{'payoff'},'FontSize',fs,'FitBoxToText','off','LineStyle','none');
annotation('textbox',[0.1802 0.0356 0.0415 0.0651],'Interpreter','latex','String',{'$S_{max}$'},'HorizontalAlignment','center','FontSize',fs,'FitBoxToText','off','LineStyle','none');
annotation('line',[0.2013 0.20123],[0.1215 0.0915]);
annotation('textbox',[0.8062 0.0311 0.0415 0.0651],'Interpreter','latex','String',{'$e^{S_{max}}$'},'FontSize',fs,'FitBoxToText','off','LineStyle','none');
annotation('line',[0.8267 0.8267],[0.1216 0.0916]);
annotation('line',[0.5136 0.5136],[0.1218 0.0918]);
annotation('textbox',[0.3753 0.0328 0.1129 0.0651],'Interpreter','latex','String',{'$0.5(S_{max}+e^{S_{max}})$'},'FontSize',fs,'FitBoxToText','off','LineStyle','none');
annotation('textbox',[0.6307 0.3929 0.1086 0.0581],'Interpreter','latex','String',{'$\max(x^2-S_{max}^2,0)$'},'FontSize',fs,'FitBoxToText','off','LineStyle','none');
annotation('textbox',[0.2587 0.3764 0.2787 0.1025],'String',{'interpolation','of MSC'},'FontSize',fs,'FitBoxToText','off','LineStyle','none');
set(gcf,'PaperPositionMode','auto')