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)?

回答(1 个)

Navid Ghajarnia
Navid Ghajarnia 2018-10-11
编辑:Navid Ghajarnia 2018-10-11

类别

Help CenterFile Exchange 中查找有关 Colormaps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by