Graphics Reference
In-Depth Information
Figure 3-11.
figure 3-12 shows the three-dimensional contour graph using 50 lines. the syntax is as follows:
>> [X, Y] = meshgrid(-2:0.1:2);
>> Z = sin(X) .* sin(Y);
>> contour3(Z, 50)
Figure 3-12.
finally, figure 3-13 represents the density graph (with the contour shaded according to different intensities of
color). the syntax is as follows:
>> [X, Y] = meshgrid(-2:0.1:2);
>> Z = sin (X) .* sin(Y);
>> pcolor(X, Y, Z)
Search WWH ::




Custom Search