I am creating a graph using graph function but it shows error. why so?
조회 수: 12 (최근 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!