digraph plot bug in 2018a?
2 views (last 30 days)
Show older comments
Paul Fishback
on 12 Sep 2018
Commented: Paul Fishback
on 12 Sep 2018
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.
0 Comments
Accepted Answer
Steven Lord
on 12 Sep 2018
What does this show?
which -all strncmpi
My suspicion is that it will show that you're calling a version of strncmpi other than one that comes with MATLAB or a MathWorks product. If so, consider renaming that version of this function or removing the directory containing it from the MATLAB path.
If you only see versions of strncmpi from MathWorks products, check if one of them is in a directory named ja. If so, remove all the toolbox/matlab/*/ja directories from your MATLAB path. The files in those directory are localized help text and are not intended to be executed.
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!