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

发布于 2024-09-09 06:29:42 字数 143 浏览 4 评论 0原文

我想在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

屌丝范 2024-09-16 06:29:42

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

plot3 allows you to plot points and edges in 3D.

月隐月明月朦胧 2024-09-16 06:29:42

现在可以 (MATLAB R2016b) 使用 graph 类以 3d 形式绘制节点链接图。例子:

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

It's now possible (MATLAB R2016b) to plot a node-link graph in 3d, using the graph class. Example:

g = graph(bucky);
plot(g, 'Layout', 'subspace3');
煮茶煮酒煮时光 2024-09-16 06:29:42

从节点和链接的意义上来说,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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文