How to keep the elemets order untouched in heatmp?

1 回表示 (過去 30 日間)
frankovaT
frankovaT 2020 年 11 月 28 日
コメント済み: frankovaT 2020 年 11 月 30 日
I want to make a heat map of my data, based on different months. I have just noticed the heatmap function, rearrenges the whole map in aphabetic order. How can I keep the oroginal order of the data. for example, omnths in their yearly order, rather in alphabetic order (X direction)? also on Y direction, the orignal order of the data is also changed to alphabetic order. How can I fix that?

採用された回答

Walter Roberson
Walter Roberson 2020 年 11 月 28 日
https://www.mathworks.com/help/matlab/ref/categorical.html
Make your inputs categorical. When you use the categorical() call, make the second parameter a call array of character vectors that lists the valid entries in increasing order.
  1 件のコメント
frankovaT
frankovaT 2020 年 11 月 30 日
Thanks it helped

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

その他の回答 (0 件)

カテゴリ

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