Reputation: 1343
Is there any way to add third dimension to a Graph in Matlab? I have a Graph object;
G = graph(S,T),
including XData an YData, is it essentially possible to have a 3D network Graph in Matlab?
The XData, YData and other attributes are being set in the Graph object, like this;
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)
I need a 3D graph, the to be plotted (possibly).
Upvotes: 0
Views: 129
Reputation: 502
The 3D plot can be done using - http://www.mathworks.com/help/matlab/ref/plot3.html
Now, you need to clearly clarify your inputs - X1, Y1 and Z1
Upvotes: 1