Matlab 3D图

时间:2016-04-18 14:59:58

标签: matlab graph

有没有办法在Matlab中为Graph添加第三维? 我有一个Graph对象;

G = graph(S,T),

包括XData和YData,基本上可以在Matlab中使用3D网络图吗?

XData,YData和其他属性正在Graph对象中设置,就像这样;

p = plot(G);
p.MarkerSize = ones(1,NumberOfNodes); 
p.XData = (an array containing some point according to the return values of a function, the same applies for YData)

我需要一张3D图表,可以绘制(可能)。

1 个答案:

答案 0 :(得分:1)

可以使用 - http://www.mathworks.com/help/matlab/ref/plot3.html

完成3D绘图

现在,您需要清楚地阐明您的输入 - X1,Y1和Z1