I am creating a graph using graph function but it shows error. why so?
9 次查看(过去 30 天)
显示 更早的评论
Code: >> g = graph([1 1],[2 3]) Undefined function 'graph' for input arguments of type 'double'.
1 个评论
Stephen23
2018-6-18
What MATLAB version are you using? The graph documentation states that it was introduced in MATLAB R2015b.
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graph and Network Algorithms 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!