06.08.2013 Views

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

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

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

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6.4.2.2 切片图和切片等位线图<br />

图 6.4-18<br />

【例 6.4.2.2-1】利用 slice 和 contourslice 表现 MATLAB 提供的无限大水体中水下射流速度<br />

数据 flow 。flow 是一组定义在三维空间上的函数数据。本例将动用切片、视角、色彩和透<br />

明度等综合手段观察定义在三维空间上的函数。<br />

%<br />

clf;[X,Y,Z,V]=flow;<br />

x1=min(min(min(X)));x2=max(max(max(X)));<br />

y1=min(min(min(Y)));y2=max(max(max(Y)));<br />

z1=min(min(min(Z)));z2=max(max(max(Z)));<br />

sx=linspace(x1+1.2,x2,5);<br />

sy=0;<br />

sz=0;<br />

slice(X,Y,Z,V,sx,sy,sz);<br />

view([-33,36]);shading interp;<br />

colormap jet;<br />

%<br />

alpha('color')<br />

alphamap('rampdown')<br />

alphamap('increase',.1)<br />

colorbar<br />

axis off<br />

24

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

Saved successfully!

Ooh no, something went wrong!