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

6 次查看(过去 30 天)
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