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

23 次查看(过去 30 天)
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]);

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2013-5-7
set(gca,'xcolor','r','ycolor','b')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Exploration 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by