Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
How to produce graphs out of the following code?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Respuestas (1)
Walter Roberson
el 12 de En. de 2018
Have you considered using the plot() method of graph() objects? https://www.mathworks.com/help/matlab/ref/graph.plot.html
0 comentarios
La pregunta está cerrada.
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!