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
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/06 18:52:12
![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](/uploads/image/z/5485589-53-9.jpg?t=matlab%E6%89%A7%E8%A1%8C%E4%B8%8B%E5%88%97%E5%91%BD%E4%BB%A4%E5%90%8E%E5%87%BA%E9%94%99%E5%A6%82%E4%B8%8B%2C%E8%AF%B7%E9%97%AE%E8%AF%A5%E6%80%8E%E4%B9%88%E6%94%B9t+%3D+0%3Api%2F20%3A2%2Api%3Bhline1+%3D+plot%28t%2Csin%28t%29%2C%27k%27%29%3B%25Next%2Cadd+a+shadow+by+offsetting+the+x-coordinates.Make+the+shadow+line+light+gray+and+wider+than+the+%25%25default+LineWidth%3Ahline2+%3D+line%28t%2B.06%2Csin%28t)
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])