matlab plot lines order code example
Example: matlab plot lines order
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)');
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)');