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

2 visualizzazioni (ultimi 30 giorni)
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.

Risposte (1)

BhaTTa
BhaTTa il 20 Nov 2024
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.

Categorie

Scopri di più su Networks in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by