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 CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by