colormap variable as a function of another variable

2 visualizaciones (últimos 30 días)
jgillis16
jgillis16 el 23 de Jun. de 2015
Comentada: Walter Roberson el 23 de Jun. de 2015
I need to have a matching vector to define the colours, with one colour for each point, that value going from -6 to +10, but defined as cm(c) where c goes from 1 to 16, with 1 corresponding to -6 and 16 corresponding to 10.
cm is defined as:
cm = flipud(colormap(jet(16)));
  1 comentario
Walter Roberson
Walter Roberson el 23 de Jun. de 2015
-6 to +10 is 17 values, which you want to map to 16 colors. Which two values should both be mapped to the same color?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Colormaps 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