Elly66
15Aug/100

Hi, a Greeting From the World of Functions

Hi!  Since this is the first post, I cannot find a more appropriate way to greet you than showing my "hi" plot which was drawn in Matlab.

H\!i(x,y)=e^{-x^2-\frac{y^2}{2}}\cos (4x)+e^{-3\Big((x+\frac{1}{2})^2+\frac{y^2}{2}\Big)}

Following is the Matlab code.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
x=-3:0.1:3;
y=-5:0.1:5;
[X,Y]=meshgrid(x,y);
Z=exp(-X.^2-(Y.^2)/2).*cos(4*X)+ exp(-3*((X+0.5).^2+(Y.^2)/2));
surf(X,Y,Z)
zlim([0 0.001])
 
for i=1:6161
  if Z(i)>0.001
       Z(i)=0.001;
  elseif Z(i)<0
       Z(i)=0;
  end
end
 
surf(X,Y,Z)
shading interp
colormap summer
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.