数学建模社区-数学中国

标题: 【奠基经典】MATLAB实用程序案例之设置照明方式 [打印本页]

作者: 青年梦想家    时间: 2015-7-25 00:12
标题: 【奠基经典】MATLAB实用程序案例之设置照明方式






设置照明方式
实例:

function shili27

h0=figure('toolbar','none',...

'position',[200 150 450 350],...

'name','实例27');

subplot(2,2,1)

sphere

shading flat

camlight left

camlight right

lighting flat

colorbar

axis off

title('Figure1')

subplot(2,2,2)

sphere

shading flat

camlight left

camlight right

lighting gouraud

colorbar

axis off

title('Figure2')

subplot(2,2,3)

sphere

shading interp

camlight right

camlight left

lighting phong

colorbar

axis off

title('Figure3')

subplot(2,2,4)

sphere

shading flat

camlight left

camlight right

lighting none

colorbar

axis off

title('Figure4')


关于本帖内容欢迎大家踊跃讨论,与在下交流!






欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) Powered by Discuz! X2.5