MATLAB Answers

How can I draw non planar graph in 3D dimension

1 view (last 30 days)
Na on 12 Feb 2020
Answered: Steven Lord on 13 Feb 2020
I have an edge data.
I want to draw it in 3D dimension. Is there any way to do that?
I saw this URL but I do not understand.


Show 1 older comment
Na on 13 Feb 2020
I tried plot3 but MATALB gave me this error
Error using plot3
Not enough input arguments.
KSSV on 13 Feb 2020
How did you use plot3? It needs three inputs.. Show us the code which you have tried.
Na on 13 Feb 2020
I only have a edge data. I do not have third input.

Sign in to comment.

Answers (1)

Steven Lord
Steven Lord on 13 Feb 2020
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.


Sign in to comment.

Sign in to answer this question.