%% gausova krivka
clc; cla

x = -5:0.25:5;

X = repmat(x,length(x),1);
Y = X';
Z = exp(-(X.^2+Y.^2)/2);
%Z(Z>0.8) = nan;  % useknuti 

% graf
%plot3(X,Y,Z,'black')
%plot3(X',Y',Z','black')
surf(X,Y,Z)
%mesh(X,Y,Z)
%hidden off % zobrazit neviditelne hrany
shading interp
a = 0:0.01:1;
b = zeros(size(a));
colormap([a',b',b'])

% view
view(50,40);

