How to plot curve with one color without precising which color it is?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hayfa R
am 11 Dez. 2019
Beantwortet: Philippe Lebel
am 11 Dez. 2019
How can I plot curves with the same color without having to determine exactly what color I want? The plot function is inside a for loop and for each iteration I want to have a group of curves with the same color.
0 Kommentare
Akzeptierte Antwort
Philippe Lebel
am 11 Dez. 2019
aloa
for i = 1:10
if i == 1
h = plot(1:10,1:2*i:20*i)
v = get(h,'Color');
else
plot(1:10,1:2*i:20*i, 'Color', v)
end
hold on
end
0 Kommentare
Weitere Antworten (0)
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!