Heatmap function does not work

10 次查看(过去 30 天)
Lidiya P
Lidiya P 2017-5-30
Hey, I don't understand why the 'heatmap' function doesn't work for me (Matlab version 2015) when I see examples for that function written in Matlab version 2014.
I cannot find it in the documentation. Can somebody help?
  8 个评论
Steven Lord
Steven Lord 2017-5-30
We started adding the note at the end of the function documentation pages indicating the release in which the function was added in release R2015a. I'm not sure all documentation pages (including pages for older functions) have it, but going forward I believe all new functions' documentation pages will have that note.
Lidiya P
Lidiya P 2017-5-30
Ok, thank you very much! I looked again at the documentations of the functions and the functions HeatMap was released for matlab version of 2009. What can be the cause here? Is it possibly too old?

请先登录,再进行评论。

回答(1 个)

Benjamin Kraus
Benjamin Kraus 2017-6-1
There are two reasons the HeatMap command may not work for you in R2015a/b.
  1. The HeatMap command comes with the Bioinformatics Toolbox. If you do not have the Bioinformatics Toolbox, you will not be able to use the built-in HeatMap command.
  2. If you have the Bioinformatics Toolbox, MATLAB is case sensitive, and the HeatMap command has a capital H and M, so make sure you are using a capital H and M.
Also note, starting in MATLAB R2017a there is a new heatmap command (all lowercase) that is available in MATLAB (without any toolboxes) in addition to the HeatMap command (from the Bioinformatics Toolbox).
Finally, if you cannot upgrade to MATLAB R2017a or get the Bioinformatics Toolbox, there is a very popular heatmap function available on the MATLAB File Exchange (called Customizable Heat Maps).

类别

Help CenterFile Exchange 中查找有关 Data Distribution Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by