Wednesday, December 28, 2011

3D surface plot in Matlab

surface(x,y,z,"facecolor","red","edgecolor","none") 设置edge color 能够把网格线去除。
或者用
h=surface(x,y,z)
set(h,"facecolor","red","edgecolor","none")  调用 set 函数可以设置属性

打光设置
lightangle(-25,20)
camlight(135,45)
 light('color',[1,1,1],'Style','local','Position',[0.5,0,0.7])


No comments:

Post a Comment