function plosny_graf_3D
x=linspace(-pi,pi,50);
y=linspace(-2,2,40);
[X,Y]=meshgrid(x,y);
Z=cos(X.*Y);
subplot(2,1,1)
mesh(X,Y,Z)
xlabel('x')
ylabel('y')
zlabel('z')
subplot(2,1,2)
surf(X,Y,Z)
xlabel('x')
ylabel('y')
zlabel('z')
disp(X)
disp(Y)
disp(Z)
end

