Info
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
network visualization with nodes arranged in two columns in MatLab
조회 수: 1 (최근 30일)
이전 댓글 표시
I have the following matrix including strings in MatLab. This is basically a very simple network, consisting of 4 nodes only. (The original network I am using is a lot larger, but for the sake of simplicity, let's continue using this one.)
A = { '' 'a' '' '' ; 'b' '' 'a' 'b'; '' '' '' 'a' ; 'a' '' '' ''};
dataset({A 'A', 'B', 'C', 'D'}, 'obsnames',{'A', 'B', 'C', 'D'})
Let's say the letters refer to certain link-types between the nodes. Now what I would like to see is two columns of nodes, and the links between them. Also, I would like to visually differentiate between the link types, say, link type 'a' could be red and link type 'b' could be green. I have in mind a layout something like this:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/157442/image.jpeg)
Is there an easy and concise way to do this? I searched through couple of manuals but have not really found this specific kind of network layout with nodes arranged in two columns as shown above.
댓글 수: 0
답변 (0개)
이 질문은 마감되었습니다.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!