How to plot directed connected nodes ?

조회 수: 10 (최근 30일)
Mahmoud Ahmed
Mahmoud Ahmed 2017년 6월 10일
댓글: KSSV 2017년 6월 10일
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
Walter Roberson
Walter Roberson 2017년 6월 10일
Please post a sketch of what you would like it to look like.
KSSV
KSSV 2017년 6월 10일
If you have your x,y coordinates plot(x(nodes1),y(nodes2)) shall work.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Directed Graphs에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by