Distinct colors for plotting two columns of a single matrix
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I have vector called x(500,2). I plot(x) and I get a blue line for column 1 and a green line for column 2. I would like a red line for contrast purposes for column 2.
0 Kommentare
Akzeptierte Antwort
the cyclist
am 2 Feb. 2011
One of several ways:
x = rand(4,2);
h = plot(x);
set(h(1),'Color','b');
set(h(2),'Color','r');
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Scatter Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!