MATLAB Graphics -Surface 绘图
1.Vocabulary: plot 绘图 surface 曲面 mesh 网格 grid 格子 illustrate 图解 region 区域 polygon 多边形 peak 顶点 tick 记号 helix 螺旋 magenta 洋红色 cyan 青色 gray 灰色 aquamarine碧绿色 2.一般步骤 Z = peaks( 20 ); % 1. Prepare your data. figure( 1 ) % 2.Select window and position plot region within window. subplot( 2 , 1 , 2 ) h = surf(Z); % 3.Call 3-D graphing function. colormap hot % 4.Set colormap and shading algorithm. shading interp set(h, 'EdgeColor' , 'k' ) light( 'Position' , [- 2 , 2 , 20 ] ) %5.Add lighting. lighting phong material( [ 0.4 , 0.6 , 0.5 , 30 ] ) set(h, 'FaceColor' , [ 0.7 0.7 0 ] , 'BackFaceLighting' , 'lit