About color of multi curve

1 次查看(过去 30 天)
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?

采纳的回答

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

更多回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by