function plosny3Dgraf
x=linspace(-pi,pi,40);
y=x;
[X,Y]=meshgrid(x,y);
Z=cos(X.*Y);
subplot(2,1,1)
mesh(X,Y,Z)
subplot(2,1,2)
surf(X,Y,Z)
end

