MATLAB: How to change color of x and y axis by red and blue

axeslineplot

I want to change the color of each axis by red & blue?
x=0:.1:1
axis([0 1 0 1]);
y=x.*(1-x);
plot(x,y,'g');
hold on
line([0 0], [0 1]);
hold on
line([0 1], [0 0]);

Best Answer

set(gca,'xcolor','r','ycolor','b')