digraph plot bug in 2018a?
조회 수: 2 (최근 30일)
이전 댓글 표시
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
채택된 답변
Steven Lord
2018년 9월 12일
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.
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!