function grafik
while(1)
v=menu('Vyber si:','x,y linearni del.','x log.del.,y lin.del.','x lin.del.,y log.del.','x,y log.del.','konec');
switch(v)
    case 1
        x=linspace(1,100,1000);
        y=vypocet(x);
        plot(x,y)
        xlabel('x')
        ylabel('y')
    case 2
        x=logspace(0,2,1000);
        y=vypocet(x);
        semilogx(x,y)
        xlabel('x')
        ylabel('y')
    case 3
        x=linspace(1,100,1000);
        y=vypocet(x);
        semilogy(x,y)
        xlabel('x')
        ylabel('y')
    case 4
        x=logspace(0,2,1000);
        y=vypocet(x);
        loglog(x,y)
        xlabel('x')
        ylabel('y')
    otherwise
        break;
end %konec switch
end %konec while
close all
end %konec funkce

function y=vypocet(x)
y=exp(3.*x./(x+2))+sin(4.*x);
end