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)');