matlab中legend函数失效了

测试代码如下

x=1:10;
y = 1:10;
y1 =1:2:20;
plot(x,y,x,y1);
legend('y ','y1 ')

结果如图

图片说明

从语法上说没问题啊,可以出正常结果。重启matlab试试。

同问

同问