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

6 visualizaciones (últimos 30 días)
Ahmed
Ahmed el 20 de Abr. de 2016
Respondida: BhaTTa el 20 de Nov. de 2024 a las 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.

Respuestas (1)

BhaTTa
BhaTTa el 20 de Nov. de 2024 a las 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.

Categorías

Más información sobre Logical en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by