creating a graph on matlab

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?

 Respuesta aceptada

Más respuestas (0)

Categorías

Más información sobre Graph and Network Algorithms en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 16 de Jun. de 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by