【问题标题】:Matlab 3D GraphMatlab 3D图形
【发布时间】:2016-04-18 14:59:58
【问题描述】:

有什么方法可以在 Matlab 中为图形添加第三维? 我有一个 Graph 对象;

G = graph(S,T),

包括 XData 和 YData,Matlab 中是否可以有一个 3D 网络图?

在Graph对象中设置XData、YData等属性,像这样;

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 图形,要绘制(可能)。

【问题讨论】:

  • graph(S,T) 如何包含 X 和 Y 数据?使用graphst 指的是边的节点端点。也许您正在寻找类似plot3 的东西。请显示一些代码。
  • 请发mcve

标签: matlab graph


【解决方案1】:

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

现在,您需要明确说明您的输入 - X1、Y1 和 Z1

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-03-12
    • 2012-04-11
    相关资源
    最近更新 更多