Color Combinations
Mostrar comentarios más antiguos
Hi, Is there are any extra color combinations along with Y,m,c,r,g,b,w,k. Any one can please tell me the pre defined commands used for extra combinations.
Respuestas (1)
Walter Roberson
el 7 de Feb. de 2011
1 voto
There is no way to define any additional named color combinations.
Any Matlab command that accepts a letter designating a color will also accept an RGB triple; it might, however, require it to be a separate parameter such as 'Color', [.2 .8 1]
You can define variables which are vectors, and then use (e.g.)
puce = [.2 .8 1];
plot(x,y,'Color',puce)
Categorías
Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!