A heatmap in MATLAB is made with the heatmap function, which draws a matrix or a table as a grid of colored cells. The shortest working call is h = heatmap(cdata ...