% Trace a Gauss curve in 3D std = 1; x=[-2:.05:2]; y=[-2:.05:2]; [X,Y]=meshgrid(x,y); gauss=(1/(std*sqrt(2*pi)))*exp((-X.^2-Y.^2)/(2*std^2) ); surf(X,Y,gauss); % Beautify image colormap(gray); ylabel('Y'); xlabel('X'); zlabel('Z'); title('Distribution normale tri-dimentionnelle');