About color of multi curve

1 Ansicht (letzte 30 Tage)
ly
ly am 26 Mär. 2016
Beantwortet: Walter Roberson am 26 Mär. 2016
Hi,
I want to change color of curves automatically
for i=1:3
plot(x,y,'color');hold on;
end
color=b,r,k (blue, red, black) with curve (i=1, 2, 3)
Can you help?

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 26 Mär. 2016
colors = {'b', 'r', 'k'};
for i=1:3
plot(x, y, colors{i});hold on;
end

Weitere Antworten (0)

Kategorien

Mehr zu Curve Fitting Toolbox 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!

Translated by