简体   繁体   English

如何绘制3D图形(网络)Matlab?

[英]how to plot 3d graph (network) matlab?

I want to plot a 3d graph in matlab 我想在Matlab中绘制3D图形

By graph I mean in the sense of nodes and edges. 图是指节点和边的意思。 I have an adjacency matrix as well as a coordinate matrix for every node. 我有每个节点的邻接矩阵以及坐标矩阵。 Eventually I would hope to colour these nodes and edges 最终我希望为这些节点和边缘着色

The gplot function is only 2d. gplot函数只有2d。 The scatter3 function does not allow for edges. scatter3函数不允许边缘。

Any ideas? 有任何想法吗?

plot3允许您以3D方式绘制点和边。

It's now possible (MATLAB R2016b) to plot a node-link graph in 3d, using the graph class. 现在(MATLAB R2016b)可以使用图类在3d中绘制节点链接图。 Example: 例:

g = graph(bucky);
plot(g, 'Layout', 'subspace3');

plot3 does not plot graphs, in the sense of nodes and links. 从节点和链接的意义上讲,plot3不会绘制图形。 I recommend to you igraph, but it scapes of matlab. 我向您推荐igraph,但它与matlab无关。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM