how can I draw network in Matlab from a specific nodes matrix

조회 수: 6 (최근 30일)
Ahmed
Ahmed 2016년 4월 20일
답변: BhaTTa 2024년 11월 20일 5:29
I have a list of nodes and I want to draw the indirect network between them, for example, I have the following:
S=['A0JLT2 ','A0JLT2 ','A0MZ66 ', 'A1A4E9 ', 'A1A4H1 ','A1L162 ','A1L4K1 ']
T=['Q3L8U1','Q6IAN0','Q76FK4','Q9H8H2','Q6PJR7','P05787-2',' A0A0C4DH19']
As it can be seen matrix Source forms the source nodes and matrix Target forms the Target nodes(for example first element of matrix S as node 1 is connected to the first element of matrix T as node 2... and so on).
Any help will be highly appreciated.

답변 (1개)

BhaTTa
BhaTTa 2024년 11월 20일 5:29
Hey @Ahmed, To draw a network in MATLAB using a list of source and target nodes, you can use the graph function, which is designed for creating and visualizing graphs.

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by