MATLAB: How to creat new colormap with new colorbar and then How to use it through the CODE

colorbarcolormap

I want three basic colors which are Brown, Yellow and Green then want to be able to create an algorithm to scale these to a number of variants depending on the size of the colormap. Is there any basic way to do this?

Best Answer

call colormapeditor() within matlab and create the colormap that you want.