Info

This question is closed. Reopen it to edit or answer.

How to produce graphs out of the following code?

1 view (last 30 days)
GEORGIOS BEKAS
GEORGIOS BEKAS on 11 Jan 2018
Closed: MATLAB Answer Bot on 20 Aug 2021
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 ];

Answers (1)

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

Products

Community Treasure Hunt

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

Start Hunting!