Error message when plotting network graph in 2018a

조회 수: 1 (최근 30일)
Paul Fishback
Paul Fishback 2018년 11월 8일
댓글: DGM 2023년 6월 27일
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
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
DGM 2023년 6월 27일
If you're getting the exact same error, have you tried checking what the main answer suggests?

댓글을 달려면 로그인하십시오.

채택된 답변

Steven Lord
Steven Lord 2018년 11월 8일
Have you written your own function named rng that is shadowing the rng function included in MATLAB? Check with:
which -all rng
  댓글 수: 4
Steven Lord
Steven Lord 2018년 11월 8일
We added a number of new properties to allow users to customize node and edge labels in graph plots in release R2018b. NodeFontSize is one of those new properties.
Paul Fishback
Paul Fishback 2018년 11월 8일
Thank you!

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

madhan ravi
madhan ravi 2018년 11월 8일
Couldn’t produce that error in 2018b so try
clear all
at the very beginning and try again
  댓글 수: 1
Paul Fishback
Paul Fishback 2018년 11월 8일
Yes, all is fine with 2018b, which I run locally on my own machine. The issue is with 2018a, which I access remotely. Using clear all does not resolve the issue.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by