I am creating a graph using graph function but it shows error. why so?

9 ビュー (過去 30 日間)
shashank pathak
shashank pathak 2018 年 6 月 18 日
コメント済み: Stephan 2018 年 6 月 18 日
Code: >> g = graph([1 1],[2 3]) Undefined function 'graph' for input arguments of type 'double'.
  1 件のコメント
Stephen23
Stephen23 2018 年 6 月 18 日
What MATLAB version are you using? The graph documentation states that it was introduced in MATLAB R2015b.

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

採用された回答

Stephan
Stephan 2018 年 6 月 18 日
編集済み: Stephan 2018 年 6 月 18 日
Hi,
the code you sent works on my R2017a. There is no error - which Matlab version do you use? This function was introduced in R2015b. If you have an ealier release it will not work.
g = graph([1 1],[2 3])
g =
graph with properties:
Edges: [2×1 table]
Nodes: [3×0 table]
Best regards
Stephan
  1 件のコメント
Stephan
Stephan 2018 年 6 月 18 日
Edited typing error:
2015b instead of 2016b like Stephen wrote in his comment.

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

その他の回答 (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