?? ex2507.m
字號(hào):
%例25-7 光源對(duì)象
%Ex25-7 Light Object
clear
clc
[x,y]=meshgrid(-1:0.1:1);
z=sin(x*pi)+cos(y*pi);
subplot(2,2,1)
surf(x,y,z)
title('no light')
subplot(2,2,2)
surf(x,y,z)
light('Color','r','Style','infinite','Position',[0 1 2])
title('red infinite light')
subplot(2,2,3)
surf(x,y,z)
light('Color','g','Style','infinite','Position',[0 1 2])
title('green infinite light')
subplot(2,2,4)
surf(x,y,z)
light('Color','r','Style','local','Position',[0 1 2])
title('red local light')
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -