用完之后原来的函数线没了,只剩下一个框框,框内也没有任何东西,按照help里面写的也一样
legend用法很简单的
plot([1,2], [1,2], 'r'); hold on plot([0,1],[2,3], 'b-') legend('Line 1', 'Line 2')