Colormap function is not working (color does not change)

8 visualizaciones (últimos 30 días)
Fardin Azimi
Fardin Azimi el 25 de Oct. de 2016
Comentada: Mehedi hasan shuvo el 5 de Ag. de 2017
Hello everyone,
Since I updated my Matlab version from 2015a to 2016b, the colormap function does not make any change to my images as they are still shown in their original grey and white color. It was not like this in version 2015a. I would appreciate it if someone could help me. Thanks
  5 comentarios
Fardin Azimi
Fardin Azimi el 26 de Oct. de 2016
Nguyen Huudat Yes my images are originally grey and white but they should become colorful with this function.
Fardin Azimi
Fardin Azimi el 26 de Oct. de 2016
Consider that they are CT scan images, not plots

Iniciar sesión para comentar.

Respuestas (2)

Image Analyst
Image Analyst el 26 de Oct. de 2016
You need to pass the axes handle in explicitly starting with R2016b otherwise it won't change. For example
colormap(handles.axes1, myColorMap);
  4 comentarios
AK19
AK19 el 28 de Jul. de 2017
Doesn't work on 2017a.
Adam
Adam el 28 de Jul. de 2017
It works fine in R2017a

Iniciar sesión para comentar.


Jan
Jan el 28 de Jul. de 2017
figure(1)
AxesH = axes;
imshow(CT_Scan1{1}, 'Parent', AxesH);
colormap(AxesH, jet);
Note than imshow accepts the argument 'Colormap' directly also.

Categorías

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