How can I draw non planar graph in 3D dimension

1 次查看(过去 30 天)
I have an edge data.
G=graph(E(:,1),E(:,2))
h=plot(G)
I want to draw it in 3D dimension. Is there any way to do that?
I saw this URL but I do not understand.
  4 个评论
KSSV
KSSV 2020-2-13
How did you use plot3? It needs three inputs.. Show us the code which you have tried.
NA
NA 2020-2-13
I only have a edge data. I do not have third input.

请先登录,再进行评论。

回答(1 个)

Steven Lord
Steven Lord 2020-2-13
Call plot and specify the 'Layout' to be one of the 3-D layouts, 'force3' or 'subspace3'. Alternately you can specify 'XData', 'YData', and 'ZData' coordinates like the "Custom Graph Node Coordinates" example on the plot function documentation page shows.

类别

Help CenterFile Exchange 中查找有关 Graph and Network Algorithms 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by