% uloha76

figure(1) % vybrat prvni graf. okno
x = [-pi : pi/50 : pi];

form = {'k-', 'k--', 'k-.'}; % formaty car
hodnoty = [1 0.5 0.1]; % hodnoty, co budeme dosazovat
i = 1;
hold on
for lambda = hodnoty % pro vsechny hodnoty lambda
    plot(x, -lambda*x.^2.*exp(-lambda*x.^2), form{i})
    i = i+1;
end
hold off

title('Grafy f(x)=-\lambda x^2exp(-\lambda x^2)')
xlabel('x'),ylabel('f(x)')
legend('\lambda=1', '\lambda=0.5', '\lambda=0.1')