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 ];
How can a graph be produced? The code can be found here: https://www.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/64476/versions/4/previews/dynamic_programming_shortestpath.m/index.html?access_key=
댓글 수: 1
답변 (1개)
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
댓글 수: 0
이 질문은 마감되었습니다.
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!