Graphics Reference
In-Depth Information
Figure 5-33.
In the following example we define several axes in a simple window (Figure 5-34 ).
>> axes('position',[.1 .1 .8 .6])
mesh(peaks(20));
axes('position',[.1 .7 .8 .2])
pcolor([1:10;1:10]);
Figure 5-34.
Then we equip special lighting, grey dense shading and variation of axes in [- 3, 3] x [- 3, 3] x [- 8, 8] to the peaks
surface (Figure 5-35 ).
>> [x, y] = meshgrid(-3:1/8:3);
z = peaks(x,y);
surfl(x,y,z);
shading interp
colormap (gray);
axis([-3 3,-3 3,-8 8])
Search WWH ::




Custom Search