程序很简单
x=0:0.2:12;
plot(x,sin(x),'-',x,1.5*cos(x),':');
legend('First','Second');
结果显示一堆错误,图中显示也不对
>> aaAttempt to call constructor line with incorrect letter case.
Error in scribe.legend/methods>create_legend_items (line 1502)
tokenhandle(end+1) = line('Parent',double(h),...
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 386)lh=scribe.legend(ha,orient,location,position,children,listen,strings,propargs{:});
Error in legend (line 284) [h,msg] = make_legend(ha,varargin(arg:end));
Error in aa (line 3)legend('First','Second');
不知哪位知道怎么回事
matlab中关于legend的问题
答案:2 悬赏:40
解决时间 2021-02-22 14:14
- 提问者网友:娇妻失忆
- 2021-02-21 16:54
最佳答案
- 二级知识专家网友:夢想黑洞
- 2021-02-21 18:22
我不知道你的是什么问题。但是我拷了你的代码到我的MATLAB里运行,一点问题也没有。
全部回答
- 1楼网友:厌今念往
- 2021-02-21 19:56
没有问题啊 ,很正常啊
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯