Using the legend in a plot leads to errors in displaying them

4 visualizaciones (últimos 30 días)
Hi all,
when displaying the legend in a plot, it looks weird (the description is crossed by the color indicator)
and in the command window I get this:
Warning: Error updating Legend. Following is the chain of causes of the error:
An error occurred while trying to determine whether "kron" is a function name.
> In defaulterrorcallback at 12
In waitbar at 113
In ExactLin.linearizeModel>LocalLinearizeModel at 224
In ExactLin.linearizeModel at 26
In ExactLin.ExactLin>@(es,ed)linearizeModel(this)
In TSSplitButton>LocalActionPerformed at 143
In hgfeval at 62
In uitools\private\javaaddlistener>cbBridge at 52
In uitools\private\javaaddlistener>@(o,e)cbBridge(o,e,response) at 47
Warning: Error updating Legend. Following is the chain of causes of the error:
An error occurred while trying to determine whether "kron" is a function name.
I've already un- and reinstalled MATLAB, am experiencing this for quite some time and couldn't find a fix on the web. It does not matter which type of plot. In the example it happend during model linearization and the subdequent plots simply are not processed.
Does somebody might know what to do?
Many thanks Chris
  2 comentarios
Adam
Adam el 12 de En. de 2015
What is ExactLin? It isn't part of base Matlab or a toolbox I have and I can't find anything about in in an online search either. Is it your own or a 3rd party function or is it part of a Matlab toolbox? (In the latter case please add the toolbox to the 'Products' list - it does make things easier!)
Christoph
Christoph el 13 de En. de 2015
Hi Adam, thanks. It's in the control systems toolbox. However, this has nothing to do with that toolbox, it occurs also for the most basic plot:
>> a=[1:10];
>> plot(a)
>> legend('bla')
Warning: Error updating Legend.
Following is the chain of causes of the
error:
An error occurred while trying to
determine whether "kron" is a function
name.

Iniciar sesión para comentar.

Respuesta aceptada

Doug Hull
Doug Hull el 13 de En. de 2015
I think something is amiss on your path. I suspect Legend has been overwritten by a different function that is for some reason calling Kron.
>> which -all legend
C:\Program Files\MATLAB\R2014b\toolbox\matlab\scribe\legend.m
Do you get the above when executing the which command?
  1 comentario
Christoph
Christoph el 13 de En. de 2015
I do.
Good point, but I would be surprised if a clean installation without any subsequent steps overwrote an essential function like legend.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by