function plosny3Dgraf_funkce
% bez parametru
while(1)
    k=input('Zadej cislo: ');
    if((k>=3)&&(k<=30))
        break;
    end
end
x=linspace(-k,k,50);
y=x;
[X,Y]=meshgrid(x,y);
Z=vypocet(X,Y);
subplot(2,2,1)
contour3(X,Y,Z,'k')
hold on
mesh(X,Y,Z)
hold off
subplot(2,2,2)
meshc(X,Y,Z)
subplot(2,2,3)
meshz(X,Y,Z)
subplot(2,2,4)
surfl(X,Y,Z)
end
function C=vypocet(A,B)
% 1 vystup
% 2 vstupni parametry
C=sin(sqrt(A.^2+B.^2))./sqrt(A.^2+B.^2);
end

