N=30; 
krok1=1/(N-1); 
krok2=(H-D)/(N-1);
[X,Y] = meshgrid(-2:4*krok1:2);
Z = X.*exp(-X.^2-Y.^2);
figure(1)
subplot(1,2,1)
surf(X,Y,Z)
view([180 0])
subplot(1,2,2)
surf(X,Y,Z)
view([-37.5 30])












