Graphics Reference
In-Depth Information
the surface with the outline (contour) graph is shown in figure 3-5 . the following syntax is used:
>> [X, Y] = meshgrid(-7.5:.5:7.5);
>> Z = sin(sqrt(X.^2+Y.^2))./sqrt(X.^2+Y.^2);
>> surfc(X, Y, Z)
Figure 3-5.
figure 3-6 shows the chart shaded, using the syntax:
>> [X, Y] = meshgrid(-7.5:.5:7.5);
>> Z = sin(sqrt(X.^2+Y.^2))./sqrt(X.^2+Y.^2);
>> surfl(X, Y, Z)
Figure 3-6.
3.6 Mesh Graphics
A three-dimensional mesh graph is defined by a function z = f(x,y) , so that the points on the surface are represented
on a grid, result of the z values are given by f(x,y) on corresponding points of the (x, y) plane. The appearance of a
mesh chart is like a fishing net, with points on the surface on the nodes of the network. Actually, it is a graph of surface
whose graph has the form of a network.
 
 
Search WWH ::




Custom Search