Function to plot a colour encoded matrix as a heatmap
heatmap(data) heatmap(data, num_points) heatmap(data, num_points, colormap) heatmap(data, num_points, colormap, [c_min c_max]) heatmap(data, num_points, colormap, [c_min c_max], annot) heatmap(data, num_points, colormap, [c_min c_max], annot, mask)
Number of points for the colormap/colorbar
Provide a colormap function to use to generate a colormap
Minimum value for colormap
Maximum value for colormap
Annotation of values on graph, %t or %f
A mask matrix of ones and zeros to apply to the data, where 1 indicates data to be plotted, and 0 indicates data to be ignored