matlab图形技术,matlab图形图像技术(1)

调用:light('color',[1,1,1],'style','local or

infinite',‘position’,[x,y,z])

本地光:x,y,z表示光源位置。无穷远光:x,y,z表示无穷远光通过该点射向原点。(exno69)

exno69:

subplot(221)

membrane %这是一个库函数

light('color',[0.9 0.5 0.1],'position',[0 -2 1])

%风格省略为无穷远,光顺序通过(0 0 0)和(0 -2 1)

subplot(222)

membrane

light('color',[0.9 0 0.1],'style','local','position',[1 -1

1])

%风格省略为无穷远,光顺序通过(0 0 0)和(0 -2 1)

与之相关的函数还有

lighting material shading等

(exno70)

(exno73)

exno70:

%未加灯光效果的z函数表面图形

subplot(221)

ezsurf('sin(sqrt(x^2 y^2))/sqrt(x^2 y^2)',[-6*pi,6*pi])

subplot(222)

%添加灯光效果的Z函数表面图形

ezsurf('sin(sqrt(x^2 y^2))/sqrt(x^2 y^2)',[-6*pi,6*pi])

view(0,75)

shading interp

%SHADING Color shading mode.(颜色浓度模式)

% shading flat each mesh line segment and face

% has a constant color determined by the color

% value at the end point of the segment or the

% corner of the face that has the smallest index or indices.

% shading faceted flat shading with superimposed black mesh

lines.

% This is the default shading mode.

% shading interp varies the color in each line segment

% and face by interpolating the colormap

% index or true color value across the line or

face.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值