Graphics Reference
In-Depth Information
Below is the contour graph (Figure 5-10 ) for the function:
æ
ç
x xye
ö
÷
1
3
2
2
22
) 22
- y
fxy
(,)( )
=-
31
x e
2
--+
xy
(
1
)
-
10
- -
3
5
- -
xy
-
e
- +
(
x
1
5
>> f = ['3 *(1-x)^2*exp(-(x^2)-(y + 1)^2)',...
'-10*(x/5-x^3-y^5)*exp(-x^2-y^2)','-1/3*exp(-(x + 1)^2 - y^2)'];
>> ezcontour(f,[-3,3],49)
colormap summer
Figure 5-10.
Then fill in color in the previous contour (Figure 5-11 ).
>> ezcontourf(f,[-3,3],49)
Figure 5-11.
In the following example we do a mixed mesh-contour (Figure 5-12 ) for the chart function:
y
xy
fxy
(,) =
2
2
1
++
>> ezmeshc('y /(1 + x^2 + y^2)', [- 5, 5, - 2*pi, 2*pi])
Search WWH ::




Custom Search