creating a graph on matlab
1 回表示 (過去 30 日間)
古いコメントを表示
I wanted to create a graph for the following cost matrix (i,j):
[0 3 4 0;
3 0 5 3;
4 5 0 5;
0 3 5 0]
where i and j are nodes. If the matrix has a zero that means there is no arc between the two nodes. if the matrix has a value then that would mean there is an arc between the two nodes with a distance (the value given in the matrix). I would like to create a graph with arcs and its respective costs.
How can I do it on matlab?
0 件のコメント
採用された回答
Walter Roberson
2013 年 6 月 16 日
There is biograph() but only if you have the right toolbox. http://www.mathworks.com/help/bioinfo/ref/biograph.html
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Graph and Network Algorithms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!