如何绘制3D图(网络)matlab?
我想在 matlab 中绘制 3d 图
我的意思是节点和边的意义上的图。我有一个邻接矩阵以及每个节点的坐标矩阵。最终我希望为这些节点和边着色
gplot 函数只是 2d。 scatter3 函数不允许有边缘。
有什么想法吗?
I want to plot a 3d graph in matlab
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. The scatter3 function does not allow for edges.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
plot3
允许您以 3D 形式绘制点和边。plot3
allows you to plot points and edges in 3D.现在可以 (MATLAB R2016b) 使用 graph 类以 3d 形式绘制节点链接图。例子:
It's now possible (MATLAB R2016b) to plot a node-link graph in 3d, using the graph class. Example:
从节点和链接的意义上来说,plot3 不绘制图表。我向你推荐 igraph,但它是 matlab 的 scapes。
plot3 does not plot graphs, in the sense of nodes and links. I recommend to you igraph, but it scapes of matlab.