Using the legend in a plot leads to errors in displaying them
1 view (last 30 days)
Show older comments
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 Comments
Adam
on 12 Jan 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!)
Accepted Answer
Doug Hull
on 13 Jan 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?
More Answers (0)
See Also
Categories
Find more on Legend in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!