Creating image from cell array of states and years

1 回表示 (過去 30 日間)
Leulaye Maskal
Leulaye Maskal 2021 年 11 月 3 日
回答済み: Sulaymon Eshkabilov 2021 年 11 月 4 日
Having trouble creating the attached image

回答 (2 件)

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021 年 11 月 4 日
The error is originated from your data X that does not present appropriate data format for imagesc(). Could you pl., upload your sample data?
  1 件のコメント
Leulaye Maskal
Leulaye Maskal 2021 年 11 月 4 日
Rows 1-11 are US states and each column is years 2000-2020

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


Sulaymon Eshkabilov
Sulaymon Eshkabilov 2021 年 11 月 4 日
Your data array type is not quite clear from your provided snapshot. If your data is as shown in the snapshot and then imagesc() should work ok. Please check your data array type. See this simple example:
G = rand(12, 20); imagesc(G), shg

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by