Colormap function is not working (color does not change)
11 views (last 30 days)
Show older comments
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 Comments
Answers (2)
Image Analyst
on 26 Oct 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 Comments
Jan
on 28 Jul 2017
figure(1)
AxesH = axes;
imshow(CT_Scan1{1}, 'Parent', AxesH);
colormap(AxesH, jet);
Note than imshow accepts the argument 'Colormap' directly also.
See Also
Categories
Find more on White in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!