Image:Gaussian 2d 1.png

From Wikipedia, the free encyclopedia

[edit] Summary

Created by Kaushik Ghose using the MATLAB commands

A = 1; x0 = 0; y0 = 0; theta = 0; sigma_x = 1; sigma_y = 2; a = (cos(theta)/sigma_x)^2 + (sin(theta)/sigma_y)^2; b = -sin(2*theta)/(sigma_x)^2 + sin(2*theta)/(sigma_y)^2 ; c = (sin(theta)/sigma_x)^2 + (cos(theta)/sigma_y)^2;

[X, Y] = meshgrid(-5:.1:5, -5:.1:5); Z = A*exp( - (a*(X-x0).^2 + b*(X-x0).*(Y-y0) + c*(Y-y0).^2)) ; surf(X,Y,Z);shading interp;view(-36,36);axis equal;drawnow

[edit] Licensing

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current16:33, 16 December 20061,200×900 (54 KB)Kghose (Talk | contribs) (Made by Kaushik Ghose using the following MATLAB code: <code> A = 1; x0 = 0; y0 = 0; theta = 0; sigma_x = 1; sigma_y = 2; a = (cos(theta)/sigma_x)^2 + (sin(theta)/sigma_y)^2; b = -sin(2*theta)/(sigma_x)^2 + sin(2*theta)/(sigma_y)^2 ; c = (sin(theta)/sigm)
00:04, 15 December 20061,200×900 (49 KB)Kghose (Talk | contribs) (Created by Kaushik Ghose using the MATLAB command : A=1;a=1;b=0;c=2;[X, Y] = meshgrid(-3:.1:3, -3:.1:3);Z = A*exp( - (a*X.^2 + b*X.*Y + c*Y.^2)) ;surf(X,Y,Z);shading interp;view(-36,36);axis equal)

The following pages on the English Wikipedia link to this file (pages on other projects are not listed):