exm060534_1.m
来自「这本书是matlab经典书籍」· M 代码 · 共 13 行
M
13 行
clf;
[X,Y,Z]=sphere(40);
colormap(jet) %<3>
subplot(1,2,1);surf(X,Y,Z);shading interp %<4>
light ('position',[2,-2,2],'style','local') %<5>
lighting phong %<6>
material([0.5,0.3,0.5,10,0.5]) %<7>
subplot(1,2,2);surf(X,Y,Z,-Z);shading flat %<8>
light;lighting flat %<9>
light('position',[-1,-1,-2],'color','y') %<10>
light('position',[-1,0.5,1],'style','local','color','w') %<11>
material([0.4,0.5,0.3,10,0.3]) %<12>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?