tiledlayout(2,1)
% Top chart with default number of colors
nexttile
cdata = magic(10);
heatmap(cdata,Colormap=abyss)
title("256 Colors")
% Bottom chart with two colors
nexttile
heatmap(cdata,Colormap=abyss(2))
title("2 Colors")
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.