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!