MATLAB: How to create a heat map without the dendrogram

heatmapMATLABno

I would like to create a heat map that does not include a dendrogram. The MATLAB function CLUSTERGRAM creates a dendrogram and a heat map but it does not have the option of creating only a heat map.

Best Answer

To create a heat map without a dendrogram use the IMAGESC function as shown below:
data = gallery('invhess',20);
imagesc(data)
axis off