Put each marker on a curve at a different color

1 visualización (últimos 30 días)
Mary
Mary el 29 de Jun. de 2020
Comentada: Mary el 30 de Jun. de 2020
Hi Matlab users,
I have a set of data. I want to have only one legend for this set of data and put each individual point at a different color. Is that possible ? because each color would represent something special.
small example of that would be:
co=jet(10);
plot(x,y,'color',co) such that for each pair x-y, there is a specific color. But this code won't work as Matlab expects only one color after 'color'.
Do you have any idea how my idea can be done ?
Regards,
Mary

Respuesta aceptada

Adam Danz
Adam Danz el 29 de Jun. de 2020

Más respuestas (0)

Categorías

Más información sobre Legend en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by