早教吧作业答案频道 -->其他-->
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
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
▼优质解答
答案和解析
% 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])
除了有一行应该是注释,其它没问题啊
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])
看了 matlab执行下列命令后出...的网友还看了以下:
matlab执行下列命令后出错如下,请问该怎么改t = 0:pi/20:2*pi;hline1 = 2020-05-16 …
速采!详解设直线ax+by+c=0的倾斜角为α,且sinα+cosα=0设直线ax+by+c=0的 2020-05-16 …
解一道二阶偏导数的题求函数的二阶偏导数Z=sin(ax+by)*sin(ax+by)我现在只求[( 2020-05-21 …
对于Linux操作系统中shadow文件说法不正确的是?A、shadow文件可以指定用户的目录B、s 2020-05-26 …
一道数学题和一道关于蛋白质计算的生物题.数学题:如果ab>0,直线ax+by+c=0的倾斜角为α, 2020-06-05 …
如果图y=sin(2x)向右移动π/6个单位,那可以怎样表示:Ay=sin(2x-π/3)By=s 2020-06-06 …
more,slimmer,braver,wider,moreimportant的原级是什么Fmor 2020-07-17 …
不等式的证明求高手指点迷津!条件是:a²+b²=1,x²+y²=1求证:ax+by≤1下面用三角函 2020-08-03 …
关于三维波动的方程(急)对于一维的驻波的方程可写为Y=Asin(wx)请问:如果推广到三维空间的驻 2020-08-03 …
下列函数中,在(0,派)上单调递增的是?Ay=sin(2分之派-x)By=cos(2分之派-x)C. 2020-12-17 …