【发布时间】:2013-01-28 05:45:19
【问题描述】:
我在我的 gui axes 中执行 scatter3 时遇到问题,scatter3 函数不支持将轴句柄作为参数传递。
来自 Mathworks 文档的函数语法 [关于轴句柄没有任何内容]
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: 如何使用句柄 hAxes 在轴上绘制 3D 散点图?
Q2:我发现问题只发生在一个轴上,散点图出现在 2D 中,就好像它是正常的 scatter。
可能是什么问题?
【问题讨论】:
-
对于这样的问题我很抱歉!这太天真了,我应该在询问之前进行更多调查。
标签: matlab plot scatter-plot