matlab执行下列命令后出错如下,请问该怎么改t = 0:pi/20:2*pi;hline1 = plot(t,sin(t),'k');%Next,add a shadow by offsetting the x-coordinates.Make the shadow line light gray and wider than the %%default LineWidth:hline2 = line(t+.06,sin(t
来源:学生作业帮助网 编辑:六六作业网 时间:2025/01/31 03:31:08
matlab执行下列命令后出错如下,请问该怎么改t = 0:pi/20:2*pi;hline1 = plot(t,sin(t),'k');%Next,add a shadow by offsetting the x-coordinates.Make the shadow line light gray and wider than the %%default LineWidth:hline2 = line(t+.06,sin(t
matlab执行下列命令后出错如下,请问该怎么改
t = 0:pi/20:2*pi;hline1 = plot(t,sin(t),'k');
%Next,add a shadow by offsetting the x-coordinates.Make the shadow line
light gray and wider than the %%default LineWidth:
hline2 = line(t+.06,sin(t),'LineWidth',4,'Color',[.8 .8 .8]);
%Finally,pop the first line to the front:
set(gca,'Children',[hline1 hline2])
Error using setChildren may only be set to a permutation of itself
matlab执行下列命令后出错如下,请问该怎么改t = 0:pi/20:2*pi;hline1 = plot(t,sin(t),'k');%Next,add a shadow by offsetting the x-coordinates.Make the shadow line light gray and wider than the %%default LineWidth:hline2 = line(t+.06,sin(t
除了有一行应该是注释,其它没问题啊
t = 0:pi/20:2*pi;hline1 = plot(t,sin(t),'k');% Next, add a shadow by offsetting the x-coordinates. Make the shadow line
% light gray and wider than the %%default LineWidth:
hline2 = line(t+.06,sin(t),'LineWidth',4,'Color',[.8 .8 .8]);
%Finally, pop the first line to the front:
set(gca,'Children',[hline1 hline2])