⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex2507.m

📁 数字信号处理的MATLAB实现
💻 M
字号:
%例25-7 光源对象
%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')

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -