MATLAB: Heatmap giving a “Cannot find an exact (case-sensitive) match for ‘heatmap’ ” error

case sensitivedirectoryerrorfunctionheatmapMATLAB

i'm using MATLAB 2016. Whenever I try to run the heatmap function, I keep getting the following error:
Cannot find an exact (case-sensitive) match for 'heatmap'
The closest match is: HeatMap in C:\Program Files\MATLAB\R2016a\toolbox\bioinfo\microarray\@HeatMap\HeatMap.m
What exactly should I type to get rid of this problem? I understand that it as something to do with the path but can't figure it out exactly.

Best Answer

As described in heatmap document, heatmap was introduced in R2017a. So as of R2016a which you're using, this function does not exist. You need to update to R2017a or above to use heatmap.