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 visualización (últimos 30 días)
Mostrar comentarios más antiguos
fariba amini
el 14 de Jul. de 2016
Respondida: Walter Roberson
el 14 de Jul. de 2016
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 comentarios
Respuesta aceptada
Walter Roberson
el 14 de Jul. de 2016
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 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!