As an option, check out this link: https://www.researchgate.net/post/How_can_one_customize_colormap_in_matlab
How to customize "colormap" in matlab?
2 次查看(过去 30 天)
显示 更早的评论
in an image i have to set colormap as gray, and i need the min color to be white and max color to be gray. by default min color is black and max color is white.how can i customize this using a command?
and how the image due to imagesc command can be adjusted in figure at desired position( in the middle of figure)?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/147946/image.png)
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Colormaps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!