Use the same color multiple times in a plotting loop
Mostrar comentarios más antiguos
Hello everyone,
I have a problem with a plotting loop, where I am plotting the spectral data and following the fit. For the reason of clarity I want to have them both in the same color, however matlab switches to the next color in order. Can anyone give me hint how to avoid this?
Ralf
3 comentarios
Narges M
el 23 de Jul. de 2013
How do you mean? you could introduce a color variable and update it only after all the plots of each iteration are done. Maybe if you put parts of your code here, it would be easier to understand.
Ralf Niemann
el 24 de Jul. de 2013
Ralf Niemann
el 24 de Jul. de 2013
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!