There is biograph() but only if you have the right toolbox. http://www.mathworks.com/help/bioinfo/ref/biograph.html
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 个评论
采纳的回答
更多回答(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!