digraph plot bug in 2018a?
Show older comments
I've tried creating and plotting a simple digraph as follows:
G = digraph([1 1], [2 3]);
e = G.Edges;
G = addedge(G,2,3);
G = addnode(G,4);
The graph is created just fine. However, when I try to plot, I get an error
plot(G)
"Error: File: strncmpi.m Line: 1 Column: 1 Invalid text character. Check for unsupported symbol, invisible character, or pasting of non-ASCII characters.
Error in matlab.internal.math.partialMatchString (line 18) tf = strncmpi(str, options, max(N, strlength(str)));
Error in cell/unique (line 102) foundflag = matlab.internal.math.partialMatchString(flag,flagvals);
Error in cell/setdiff>cellsetdiffR2012a (line 303) uA = unique(a,order);
Error in cell/setdiff (line 83) [varargout{1:nlhs}] = cellsetdiffR2012a(varargin{:});
Error in digraph/plot>checkinputnames (line 139) names = [setdiff(properties('matlab.graphics.chart.primitive.GraphPlot'),...
Error in digraph/plot (line 86) [args, is3D] = checkinputnames(args,nameOffset);"
I obtain this error in 2018a but not in 2017b nor in the 2018b pre-release. My system administrator indicates that they have updated Matlab to Update 5.
Accepted Answer
More Answers (0)
Categories
Find more on Graph and Network Algorithms in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!