Using the legend in a plot leads to errors in displaying them
4 次查看(过去 30 天)
显示 更早的评论
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 个评论
Adam
2015-1-12
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!)
采纳的回答
Doug Hull
2015-1-13
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?
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Legend 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!