showing strings of text in heatmap (R2017a) images

30 ビュー (過去 30 日間)
HW
HW 2017 年 9 月 21 日
コメント済み: HW 2017 年 9 月 23 日
I would like to use the heatmap function that is newly available in Matlab R2017a to display information that may be either numbers or a string or text. For example, perhaps the first row might display in each square "n/a" and then other squares display numbers.
There is a Matlab heatmap example document that demonstrates doing such a thing, but I cannot get it to work for the data I am working on. It appears that the example is tied to the heatmap function as found previously in the bioinformatics toolbox.
So - I'm wondering if anyone has suggestions for how to display strings in the boxes in images created using the new heatmap function available in Matlab R2017a. Thank you.

採用された回答

Walter Roberson
Walter Roberson 2017 年 9 月 23 日
This is not supported by the new heatmap function.
  1 件のコメント
HW
HW 2017 年 9 月 23 日
Thank you!

サインインしてコメントする。

その他の回答 (1 件)

Arthur Goldsipe
Arthur Goldsipe 2017 年 9 月 22 日
The example you link to is for a different heatmap function that someone created and uploaded to the MathWorks File Exchange. To learn more about the new heatmap function that now ships with MATLAB, take a look at the reference page.
  1 件のコメント
HW
HW 2017 年 9 月 23 日
編集済み: HW 2017 年 9 月 23 日
In my question, I identify that I'm looking for information on how to use the R2017a function heatmap, to which you link, to do something that is described in its previous incarnation, to which I link to demonstrate how the ability to show string in the boxes of the heatmap was available in a previous version. As I describe in my question, I am looking for information on how to do this with the new heatmap function, as there is no description for how to do so in the reference page for it. If I've missed the obvious and if the reference page for the R2017a function describes how to show text in the boxes, please point that out.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeData Distribution Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by