MATLAB Answers


Error message when plotting network graph in 2018a

Asked by Paul Fishback on 8 Nov 2018
Latest activity Commented on by Paul Fishback on 8 Nov 2018
I'm having a problem creating a simple network graph from a symmetric adjacency matrix.
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


Sign in to comment.


2 Answers

Answer by Steven Lord
on 8 Nov 2018
 Accepted Answer

Have you written your own function named rng that is shadowing the rng function included in MATLAB? Check with:
which -all rng


Show 1 older comment
However, I seemed to have another problem when trying to adjust the node font size:
produces and error message, whereas
works just fine. Again, the problem appears in 2018a but not 2018b. The error message this time is the following:
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.

Sign in to comment.

Answer by madhan ravi
on 8 Nov 2018

Couldn’t produce that error in 2018b so try
clear all
at the very beginning and try again

  1 Comment

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.

Sign in to comment.