Give a specific color to an interval of value

4 visualizaciones (últimos 30 días)
Giacomo Abrardo
Giacomo Abrardo el 14 de Mayo de 2021
Respondida: Walter Roberson el 14 de Mayo de 2021
Hi, i have to plot with pcolor a matrix with values from -1 to 1. How can i assign to the values from -1 to 0.3 a color in grey scale and to the values from 0.3 to 1 a color in green scale? Thank you all
  2 comentarios
Walter Roberson
Walter Roberson el 14 de Mayo de 2021
Are you talking about exactly two colors? Or are you talking about shades of colors -- that -1 to 0.3 is shades of grey and 0.3 to 1 is shades of green?
Giacomo Abrardo
Giacomo Abrardo el 14 de Mayo de 2021
I'm talking about shade of colors

Iniciar sesión para comentar.

Respuesta aceptada

Walter Roberson
Walter Roberson el 14 de Mayo de 2021

Más respuestas (0)

Categorías

Más información sobre Color and Styling 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