Main Content

volumebounds

物体データに対する座標と色の範囲

構文

lims = volumebounds(X,Y,Z,V)
lims = volumebounds(X,Y,Z,U,V,W)
lims = volumebounds(V)
lims = volumebounds(U,V,W)

説明

lims = volumebounds(X,Y,Z,V) は、スカラー 3 次元データの現在の軸の x、y、z 座標と色の範囲を返します。lims は、ベクトルとして返されます。

[xmin xmax ymin ymax zmin zmax cmin cmax]

このベクトルを axis コマンドに渡すことができます。

lims = volumebounds(X,Y,Z,U,V,W) は、ベクトル 3 次元データの現在の軸の x、y、z 座標の範囲を返します。lims は、ベクトルとして返されます。

[xmin xmax ymin ymax zmin zmax]

lims = volumebounds(V) および lims = volumebounds(U,V,W) は、XYZ が以下の式によって決定されると仮定します。

[X Y Z] = meshgrid(1:n,1:m,1:p) 

ここで [m n p] = size(V) です。

すべて折りたたむ

volumebounds を使用して、関数 flow から返された等値面に座標軸と色の範囲を設定します。

[x,y,z,v] = flow;
p = patch(isosurface(x,y,z,v,-3));
isonormals(x,y,z,v,p);
daspect([1 1 1]);
isocolors(x,y,z,fliplr(v),p);
shading interp
axis(volumebounds(x,y,z,v));

Figure contains an axes object. The axes object contains an object of type patch.

拡張機能

バージョン履歴

R2006a より前に導入