如何在Matlab上绘制散射体的图形

如何在Matlab上绘制散射体的图形,matlab,matlab-figure,scatter-plot,Matlab,Matlab Figure,Scatter Plot,我得到了一个散射对象,想查看它,但还没有找到正确的函数来执行它。我只知道它有以下特性: Marker: 'o' MarkerEdgeColor: 'none' MarkerFaceColor: [0.6350 0.0780 0.1840] SizeData: 36 LineWidth: 0.5000 XData: [1×482 double] YData: [1×482 double] ZDa

我得到了一个散射对象,想查看它,但还没有找到正确的函数来执行它。我只知道它有以下特性:

         Marker: 'o'
MarkerEdgeColor: 'none'
MarkerFaceColor: [0.6350 0.0780 0.1840]
       SizeData: 36
      LineWidth: 0.5000
          XData: [1×482 double]
          YData: [1×482 double]
          ZData: [1×0 double]
          CData: [0.6350 0.0780 0.1840]
那么我如何检索这个对象的图像呢?
我知道view()是用于clustergram的。但是散射对象的函数是什么?

Matlab的
散射
不支持对象作为输入:

如果有散布对象,可以手动打印或重新指定父特性:

o=scatter(rand(20,1),rand(20,1),12,line(20),“*”);
类(o)%是“matlab.graphics.chart.primitive.District”
%手动打印对象
图形
分散(o.XData、o.YData、o.SizeData、o.CData、o.Marker、'LineWidth',o.LineWidth)
%或重新分配父属性
图形
h=轴();
设置(o,'Parent',h);%分配o的新父级。

为什么Matlab没有设计一个函数来直接绘制散射对象?不知道。也许保存对象而不是原始数据并使用脚本或函数来重现绘图并不常见。不知道。也许保存对象而不是原始数据并使用脚本或函数来重现绘图并不常见。
scatter(X,Y) draws the markers in the default size and color.
scatter(X,Y,S) draws the markers at the specified sizes (S) with a single color. This type of graph is also known as a bubble plot.
scatter(...,M) uses the marker M instead of 'o'.
scatter(...,'filled') fills the markers.

scatter(AX,...) plots into AX instead of GCA.

H = scatter(...) returns handles to the scatter objects created.