can any one tell me how can i change the color of different part of a contour?like an image i attached here.I have no idea.thanks in advance
조회 수: 1 (최근 30일)
이전 댓글 표시
can any one tell me how can i change the color of different part of a contour?like an image i attached here.I have no idea.thanks in advance
댓글 수: 3
채택된 답변
Walter Roberson
2016년 7월 14일
colortable = [0 0 0; %black
0 .8 .1; %bright-ish green-ish
.05 .5 0.05; %darker green-ish
... %etc
];
for K = 1 : number_of_segments
these_x = segment_x{K};
these_y = segment_y{K};
this_color = colortable(K,:);
plot(these_x, these_y, 'Color', this_color);
hold on
end
댓글 수: 0
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!