Graphics Reference
In-Depth Information
Figure 5-35.
Then we change perspective, mesh and color to the previous illuminated surface (Figure 5-36 ).
>> view([10 10])
grid on
hold on
surfl(peaks)
shading interp
colormap copper
hold off
Figure 5-36.
Below are two examples of triangle graphics (Figures 5-37 and 5-38 ). Note that because the rand function is
used, your results will not be the same as these.
>> x = rand(1,50);
y = rand(1,50);
z = peaks(6*x-3,6*x-3);
tri = delaunay(x,y);
trimesh(tri,x,y,z)
Search WWH ::




Custom Search