📜  matlab 图例顺序 - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:51.196000             🧑  作者: Mango

代码示例1
x = linspace(0,pi);

p1 = plot(x,sin(x),'b');
hold on 
p2 = plot(x,cos(x),'r');

legend([p2,p1],'cos(x)','sin(x)')