Plotting with different colors

2 visualizaciones (últimos 30 días)
Aftab Ahmed Khan
Aftab Ahmed Khan el 10 de Oct. de 2014
Comentada: Aftab Ahmed Khan el 10 de Oct. de 2014
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);

Respuesta aceptada

Image Analyst
Image Analyst el 10 de Oct. de 2014
  1 comentario
Aftab Ahmed Khan
Aftab Ahmed Khan el 10 de Oct. de 2014
Hi, this thread solved it for me. thank you.

Iniciar sesión para comentar.

Más respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 10 de Oct. de 2014
Don't specify the color k
plot(ITstore,bptime,'-','LineWidth',2)
  2 comentarios
Aftab Ahmed Khan
Aftab Ahmed Khan el 10 de Oct. de 2014
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 el 10 de Oct. de 2014
Look at this example
x=linspace(0,10,100);
y=[sin(x)' cos(x)']
plot(x,y,'-')

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by