weixin_45076015 2020-05-26 17:44 采纳率: 0%
浏览 623
已采纳

matlab使用legend出现如下问题,请问如何解决

Attempt to call constructor text with incorrect letter case.

Error in scribe.legend/methods>strsize (line 979)
t=text('Parent',ax,...

Error in scribe.legend/methods>getsizeinfo (line 632)
strsizes(k,:) = strsize(h,ppos,fname,fsize,fangl,fwght,interp,str);

Error in scribe.legend/methods (line 19)
[varargout{1:nargout}] = feval(args{:});

Error in scribe.legend/methods>create_legend_items (line 1426)
s = methods(h,'getsizeinfo');

Error in scribe.legend/methods (line 17)
feval(args{:});

Error in scribe.legend (line 115)
methods(h,'create_legend_items',children);

Error in legend>make_legend (line 377)
lh=scribe.legend(ha,orient,location,position,children,listen,strings,propargs{:});

Error in legend (line 280)
[h,msg] = make_legend(ha,varargin(arg:end));

Error in continous (line 5)
legend('sin(t)','cos(t)');

—————————————————————————————————————————————————
需要运行的代码如下:
t=linspace(0,4*pi,512);

plot(t,sin(t),'-',t,cos(t),'-.');

title('my figure');

xlabel('t');

legend('sin(t)','cos(t)');

  • 写回答

1条回答 默认 最新

  • 关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 已采纳回答 5月7日

悬赏问题

  • ¥15 我这模型写的不对吗?为什么lingo解出来的下面影子价格这一溜少一个变量
  • ¥50 树莓派安卓APK系统签名
  • ¥15 maple软件,用solve求反函数出现rootof,怎么办?
  • ¥65 汇编语言除法溢出问题
  • ¥15 Visual Studio问题
  • ¥20 求一个html代码,有偿
  • ¥100 关于使用MATLAB中copularnd函数的问题
  • ¥20 在虚拟机的pycharm上
  • ¥15 jupyterthemes 设置完毕后没有效果
  • ¥15 matlab图像高斯低通滤波