Info

此问题已关闭。 请重新打开它进行编辑或回答。

How to produce graphs out of the following code?

1 次查看(过去 30 天)
The cost matrix stands for the connectivity and the distances among nodes.
% cost=[ x x x 0 0 0
% 0 x 0 0 0 0
% 0 0 x x x 0
% 0 0 0 x x 0
% 0 0 0 0 x x
% 0 0 0 0 0 x ];

回答(1 个)

Walter Roberson
Walter Roberson 2018-1-12
Have you considered using the plot() method of graph() objects? https://www.mathworks.com/help/matlab/ref/graph.plot.html

此问题已关闭。

产品

Community Treasure Hunt

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

Start Hunting!

Translated by