Borrar filtros
Borrar filtros

Set color map color range

2 visualizaciones (últimos 30 días)
Kelvin
Kelvin el 22 de Oct. de 2015
I have a 3D plot using patch and the default colormap is jet as I am using R2014a.So I use
cMap=hsv(250); colormap(cMap); caxis([min(M(:)) max(M(:))]);
But when the value increase the color changes from deep blue to light blue then to deep red. It is not desirable for me as I want the color change from light color to deep color when the value increase. So how can I adjust the colormap so that it changes from, say light blue or white to deep red as the value increase? Thank you.

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