About color of multi curve

1 回表示 (過去 30 日間)
ly
ly 2016 年 3 月 26 日
回答済み: Walter Roberson 2016 年 3 月 26 日
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 Center および File ExchangeInterpolation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by