06.08.2013 Views

内容简介作者简介 - 科学与工程计算系

内容简介作者简介 - 科学与工程计算系

内容简介作者简介 - 科学与工程计算系

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

set(h_at,'Ylim',[0,210]) %<br />

line(tt,yt,'Color','r','Parent',h_at) %<br />

xpm=get(h_at,'Xlim'); %<br />

txtick=xpm(1):((xpm(2)-xpm(1))/nx):xpm(2); %<br />

tytick=0:((210-0)/ny):210; %<br />

set(h_at,'Xtick',txtick,'Ytick',tytick) %<br />

压力 → (× 10 5 Pa )<br />

0 4 8 12 16 20 24 28 32 36 40<br />

15<br />

0<br />

12.5<br />

10<br />

7.5<br />

5<br />

2.5<br />

0<br />

0 0.5 1 1.5 2 2.5 3 3.5 4 4.5<br />

210<br />

5<br />

时 间 → (分 )<br />

9.7.4 连续变焦和飞驰图形<br />

时间 → (分)<br />

图 9.7-4<br />

【例 9.7.4-1】通过 CameraPosition 设置的不断变化,使地球迎面飞来,贯穿而过,从地球另<br />

一面飞离而去。但在整个飞行过程中,相机镜头始终对着地球。<br />

(1)<br />

[earth_zzy.m]<br />

function earth_zzy(ap)<br />

%erath_zyy.m<br />

%<br />

%<br />

load topo<br />

figure('colormap',topomap1,'Color',[.8 .8 .8]); % <br />

[x,y,z] = sphere(50);<br />

azzy.DataAspectRatio = [1 1 1];azzy.PlotBoxAspectRatioMode = 'auto';<br />

fa = axes('Visible','off', azzy);<br />

szzy1.AmbientStrength = 0.1;szzy1.DiffuseStrength = 1;<br />

szzy1.SpecularColorReflectance = .5; szzy1.SpecularExponent = 20;<br />

szzy1.SpecularStrength = 1;<br />

surface(x,y,z,szzy1,'FaceLighting','phong','FaceColor','texture',...<br />

'EdgeColor','none','Cdata',topo,'Parent',fa);% <br />

if ap==1,set(fa,'CameraViewAngle',0.1*get(fa,'CameraViewAngle'));end<br />

light('position',[-1 0 1],'color',[0.5 1 0.5]);<br />

light('position',[-1.5 0.5 -0.5],'color',[.6 .2 .2]);<br />

light('Position',[1.5 1.5 -1]);<br />

8<br />

35<br />

70<br />

105<br />

140<br />

175<br />

( °C ) ← 零下温度

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!