Plotting with different colors

2 次查看(过去 30 天)
Hi everyone, i want to plot these graphs wtih different colors as at the moment all of them are black. This plot command is inside the loop, each time it plots one curve on the figure window. So i want each time it plots the graph with different color. Thank you so much.
plot(ITstore,bptime,'-k','LineWidth',2);

采纳的回答

Image Analyst
Image Analyst 2014-10-10

更多回答(1 个)

Azzi Abdelmalek
Azzi Abdelmalek 2014-10-10
Don't specify the color k
plot(ITstore,bptime,'-','LineWidth',2)
  2 个评论
Aftab Ahmed Khan
Aftab Ahmed Khan 2014-10-10
Hi, if i don't specify the color, then i am getting all of them in blue color. as shown below
Azzi Abdelmalek
Azzi Abdelmalek 2014-10-10
Look at this example
x=linspace(0,10,100);
y=[sin(x)' cos(x)']
plot(x,y,'-')

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 2-D and 3-D Plots 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by