永发信息网

matlab执行下列命令后出错如下,请问该怎么改

答案:2  悬赏:50  手机版
解决时间 2021-01-04 06:55
  • 提问者网友:感性作祟
  • 2021-01-03 14:51
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
最佳答案
  • 五星知识达人网友:十鸦
  • 2021-01-10 05:02
除了有一行应该是注释,其它没问题啊
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])
全部回答
  • 1楼网友:北方的南先生
  • 2021-01-10 05:16
我在matlabr2012a上运行如下: sym x 改成 syms x >> syms x >> solve('-x+sinh(0.3466*log2((1+x)/(1-x)))=0') ans = 0 >>
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯