1

scatter3GUIでの実行に問題があります。axesこのscatter3関数は、軸ハンドルをパラメーターとして渡すことをサポートしていません。


Mathworksドキュメントの関数構文[Axesハンドルについては何もありません]

scatter3(X,Y,Z,S,C)
scatter3(X,Y,Z)
scatter3(X,Y,Z,S)
scatter3(...,markertype)
scatter3(...,'filled')
scatter3(...,'PropertyName',propertyvalue)
h = scatter3(...)

軸ハンドルがであると仮定しhAxesます。関数ドキュメントのサンプルデータは次のとおりです。

[x,y,z] = sphere(16);
X = [x(:)*.5 x(:)*.75 x(:)];
Y = [y(:)*.5 y(:)*.75 y(:)];
Z = [z(:)*.5 z(:)*.75 z(:)];
S = repmat([1 .75 .5]*10,numel(x),1);
C = repmat([1 2 3],numel(x),1);

Q1: ハンドル付きの軸で3D散布図を作成するにはどうすればよいhAxesですか?

Q2:私が理解したのは、問題が1つの軸だけで発生することです。散布図は、通常のように2Dで表示されますscatter

何が問題なのか?

4

1 に答える 1

1

Answer 1:

Although it's not mentioned but it seems like axes handle can be passed normally, that this cab be trivially done by the following code:

scatter3(hAxes, X(:),Y(:),Z(:),S(:),C(:),'filled');

Answer2:

It's 3D but It need a rotation tool to get the view from different angles !

于 2013-01-28T06:40:58.223 に答える