MATLAB: How to plot a heatmap of a table where the rows represent y position and columns the x position using the data as the heat variable.

heatmapMATLAB

I am trying to figure out how to create a heat-map from a table where the 4 rows represent frequency bands, the Columns represent experiment number and the data in the table represents spectral power. I am wishing to create the heat-map so that the color represents each experiments spectral power in each of the 4 bands.
Any help would be much appreciated.

Best Answer

Version 2017a introduced the function heatmap. See the documentation: