Answers for "matlab plot lines order"

3

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)');
Posted by: Guest on May-14-2021

Browse Popular Code Answers by Language