【matlab】求教帮忙看看这段代码怎么错了,x=0;0.1:2*pi;>> y1=sin(x);>> y2=sin(2*x);>> y3=sin(4*x);>> plot(x,y1,'ob',x,y2,'--dc',x,y3,'vr');>> axis([0 8 -1.25 1.25]);>> xlabel('x');>> ylabel('y');>> title('sin(x)/sin(2x)/sin(4x)');>> lege
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/17 19:47:57
【matlab】求教帮忙看看这段代码怎么错了,x=0;0.1:2*pi;>> y1=sin(x);>> y2=sin(2*x);>> y3=sin(4*x);>> plot(x,y1,'ob',x,y2,'--dc',x,y3,'vr');>> axis([0 8 -1.25 1.25]);>> xlabel('x');>> ylabel('y');>> title('sin(x)/sin(2x)/sin(4x)');>> lege
【matlab】求教帮忙看看这段代码怎么错了,
x=0;0.1:2*pi;
>> y1=sin(x);
>> y2=sin(2*x);
>> y3=sin(4*x);
>> plot(x,y1,'ob',x,y2,'--dc',x,y3,'vr');
>> axis([0 8 -1.25 1.25]);
>> xlabel('x');
>> ylabel('y');
>> title('sin(x)/sin(2x)/sin(4x)');
>> legend('y=sin(x)','y=sin(2*x)','y=sin(4*x)')
Warning:Plot empty.
> In legend at 286
报错都出来了,小白一枚,望多多指教!
【matlab】求教帮忙看看这段代码怎么错了,x=0;0.1:2*pi;>> y1=sin(x);>> y2=sin(2*x);>> y3=sin(4*x);>> plot(x,y1,'ob',x,y2,'--dc',x,y3,'vr');>> axis([0 8 -1.25 1.25]);>> xlabel('x');>> ylabel('y');>> title('sin(x)/sin(2x)/sin(4x)');>> lege
x=0;0.1:2*pi;
==>
x=0:0.1:2*pi;