Use the same color multiple times in a plotting loop
이전 댓글 표시
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
Narges M
2013년 7월 23일
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
2013년 7월 24일
Ralf Niemann
2013년 7월 24일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!