how to draw graph in matlab? Using Biograph?

9 ビュー (過去 30 日間)
Aswin Sandirakumaran
Aswin Sandirakumaran 2018 年 6 月 8 日
コメント済み: Steven Lord 2018 年 6 月 8 日
How to draw biograph with labels corresponding to values in p vector?
if true
p = [1,2]
for i=0 : length(p)
%how to draw biograph with label as 1 and 2
end
end

採用された回答

Steven Lord
Steven Lord 2018 年 6 月 8 日
If you're using release R2015b or later, consider using the graph or digraph functions included in MATLAB to draw your graph / network object.
  2 件のコメント
Aswin Sandirakumaran
Aswin Sandirakumaran 2018 年 6 月 8 日
how to do that? Or how to use that function in this example?
Steven Lord
Steven Lord 2018 年 6 月 8 日
Your question doesn't have a lot of detail about what you're trying to do, so the only general suggestion I can make is to take a look at the examples in the documentation for the graph or digraph functions, depending on whether you want an undirected or directed graph respectively.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraph and Network Algorithms についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by