how to make a single plot with different colors?

 Akzeptierte Antwort

Iman Ansari
Iman Ansari am 17 Apr. 2013

0 Stimmen

Hi
x=1:10;
y=1:10;
plot(x(1:5),y(1:5),'r')
hold on
plot(x(5:10),y(5:10),'g')

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by