How can I use the graph()-function
3 ビュー (過去 30 日間)
古いコメントを表示
If I use the graph()-function to create a Graph object it works only if the workspace is clear. I use type
A= [0 1 0 1;1 0 1 1;0 1 0 1;1 1 1 0]; G= graph(A);
it works. If I use the same code in a project and I insert this lines the following error occurs: "Subscript indices must either be real positive integers or logicals." I don't use the variable A or G otherwise in the project... Thanks for helping, Chris
0 件のコメント
採用された回答
Steven Lord
2015 年 9 月 9 日
You have created a variable named graph in the "project" function or script. Change the name of that variable if you want to use the GRAPH function introduced in release R2015b.
1 件のコメント
Sean de Wolski
2015 年 9 月 9 日
dbstop if error
To stop in debug mode, then:
which -all graph
When the error occurs
その他の回答 (1 件)
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!