digraph plot bug in 2018a?

2 visualizaciones (últimos 30 días)
Paul Fishback
Paul Fishback el 12 de Sept. de 2018
Comentada: Paul Fishback el 12 de Sept. de 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.

Respuesta aceptada

Steven Lord
Steven Lord el 12 de Sept. de 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.
  1 comentario
Paul Fishback
Paul Fishback el 12 de Sept. de 2018
You identified the source of the problem:
which -all strncmpi
indicated that there is a version of strncmpi that comes with a toolbox used for reading raw EEG signals into Matlab.
Thanks so much!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Just for fun en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by