figure(1);

set(gcf, 'PaperUnits', 'centimeters');
xSize = 20; ySize = 15;
xLeft = (21 - xSize)/2; yTop = (30 - ySize)/2;
set(gcf,'PaperPosition', [xLeft yTop xSize ySize]);
set(gcf,'Position',[0 0 xSize*50 ySize*50]);

hold on;
 
xlabel('x');
ylabel('F');

N = 100;

X = randn(N, 1);

hold on;

x = -3:0.1:3;
y = cdf('Normal', x, 0, 1);

cdfplot(X);
plot(x, y, 'g');
plot(X, 0, 'r.'); 

t = title('Berechnung empirischer Verteilungsfunktion', 'interpreter', 'latex');
set(t, 'FontSize', 16);

axis([-3 3 0 1]);

l = legend('Theoretische Verteilungsfunktion', ...
           ['Empirische Verteilungsfunktion'], ...
           ['Stichprobe von $N = ', num2str(N), '$ IID Zufallszahlen aus $\mathcal{N}(0, 1)$']);
set(l, 'Interpreter', 'latex', 'FontSize', 15, 'Location', 'NorthWest');