Error message when plotting network graph in 2018a
显示 更早的评论
I'm having a problem creating a simple network graph from a symmetric adjacency matrix.
A=[0,1,1,0,0;1,0,1,0,0;1,1,0,1,1;0,0,1,0,1;0,0,1,1,0]
G=graph(A);
plot(G);
Creating G is not a problem, but the plot command produces the following error message:

Interestingly, I don't have any problems with R2018b--just with R2018a
2 个评论
Hayden
2023-6-27
I am having the same error messages when I try to use the graphplot function in the econometrics toolbox for a dtmc plot. I did not have this issue previously, but now it has come up for no reason. I have not changed anything in my code
DGM
2023-6-27
If you're getting the exact same error, have you tried checking what the main answer suggests?
采纳的回答
更多回答(1 个)
madhan ravi
2018-11-8
Couldn’t produce that error in 2018b so try
clear all
at the very beginning and try again
类别
在 帮助中心 和 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!
