How to plot directed connected nodes ?

2 visualizzazioni (ultimi 30 giorni)
Mahmoud Ahmed
Mahmoud Ahmed il 10 Giu 2017
Commentato: KSSV il 10 Giu 2017
I have 10 nodes from N1 to N10 are distributed over square area with size 2km*3km .. the 3km length of the square area is divided into 4 lines .. Each line is separated with 1km from the next line .. Node 1 is on the middle of the 1st line .. Node 2,3 and 4 are on the 2nd line and each node is separated with 1km from the node besides it .. Node 5,6 and 7 are on the 3rd line and each node also is separated with 1km from the node besides it .. Node 8,9 and 10 are on the 4th line and each node is also separated with 1km from the node besides it .. The sources of links are from nodes [2 3 4 5 6 7 8 9 10] directed to nodes [1 1 1 2 3 4 5 6 7] How can I plot this topology?
  2 Commenti
Walter Roberson
Walter Roberson il 10 Giu 2017
Please post a sketch of what you would like it to look like.
KSSV
KSSV il 10 Giu 2017
If you have your x,y coordinates plot(x(nodes1),y(nodes2)) shall work.

Accedi per commentare.

Risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by