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 Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by