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

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

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

p1 = plot(x,sin(x),'b','linewidth',2);
hold on 
p2 = plot(x,cos(x),'r','linewidth',2);
uistack(p1,'top');
legend([p1,p2],'sin(x)','cos(x)');