フィルターのクリア

How to plot this picture use matlab?

1 回表示 (過去 30 日間)
z cy
z cy 2020 年 5 月 20 日
コメント済み: z cy 2020 年 5 月 23 日

採用された回答

Steven Lord
Steven Lord 2020 年 5 月 21 日
On the documentation page for the plot method of graph objects see the "Custom Graph Node Coordinates" example for how to plot nodes of your graph in specific locations.
The documentation page describing various types of customization you can do to a plotted graph may also be of use to you.
  1 件のコメント
z cy
z cy 2020 年 5 月 23 日
Thanks!

サインインしてコメントする。

その他の回答 (1 件)

Ameer Hamza
Ameer Hamza 2020 年 5 月 20 日
Try this code
s = randi([1 100], 1, 2000);
t = randi([1 100], 1, 2000);
G = graph(s, t);
p = plot(G, 'Layout', 'subspace');
p.NodeLabel = [];
p.MarkerSize = 10;
p.NodeCData = 1:100;
p.EdgeColor = [0.5 0.5 0.5];
colormap(autumn)
colorbar
  5 件のコメント
Ameer Hamza
Ameer Hamza 2020 年 5 月 21 日
編集済み: Ameer Hamza 2020 年 5 月 21 日
Do you have the code to create the adjacency matrix? Also, do you want to use custom coordinates for the node position?
z cy
z cy 2020 年 5 月 23 日
yes. Thank you!

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeNetworks についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by