Borrar filtros
Borrar filtros

Rescaling RGB for imagesc

4 visualizaciones (últimos 30 días)
Zahra Yousefi Darani
Zahra Yousefi Darani el 30 de Jul. de 2023
Comentada: Zahra Yousefi Darani el 30 de Jul. de 2023
I have a colormap:
BeautifulColorVector =
0.3735 0 0.7500
0.2490 0 0.5000
0.1245 0 0.2500
0.0700 0.0700 0.0700
I made this to create a 2x2 matrix with beautiful colors by imagesc.
How can I rescale the colour in a way that true colors appear by imagesc function?

Respuesta aceptada

Walter Roberson
Walter Roberson el 30 de Jul. de 2023
BeautifulColorVector = [
0.3735 0 0.7500
0.2490 0 0.5000
0.1245 0 0.2500
0.0700 0.0700 0.0700];
img = [1 2; 3 4];
imagesc(img); colormap(BeautifulColorVector)

Más respuestas (0)

Categorías

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

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by