How to plot a 3D heatmap plot over an image?

4 ビュー (過去 30 日間)
sal goodman
sal goodman 2016 年 6 月 22 日
コメント済み: matlabuser12 2016 年 6 月 23 日
I have this type of data:
Data = [1:1:9; 1 2 3 4 5 6 7 8 9; 1 2 3 4 5 6 7 8 9 ;1 2 3 4 5 6 7 8 9;1 2 3 4 5 6 7 8 9];
Where the first entry is the zone of interest (9 zones total) and the remaining 4 array entries are how long something stayed in the zone (just arbitrary now for this question.
I want to plot how long each thing is in each zone on a picture of a map as a 3d "heatmap" style plot. The map is divided into a 3x3 grid like so:
1 2 3
4 5 6
7 8 9
How do I plot this? I have tried the contour and surf functions but I am not sure how I would map them to the grid. I would like to overlay the graph on a map picture as my final step but just getting the graph up and running would be great!
  2 件のコメント
Chad Greene
Chad Greene 2016 年 6 月 22 日
I think something must be missing--What do you mean by "the remaining 3 array entries"?
sal goodman
sal goodman 2016 年 6 月 22 日
hi chad,you mean the other 4 rows of data? The first entry in Data = [X;A;B;C;D], X is the zones in the grid, the other 4 entries A-D is the actual data I want to histogram/heatmap plot. So the A(1) correlates to X(1), or the first value in A is the value for zone 1 in the plot.

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

回答 (1 件)

Muhammad Usman Saleem
Muhammad Usman Saleem 2016 年 6 月 22 日
  1 件のコメント
matlabuser12
matlabuser12 2016 年 6 月 23 日
How do I use that to align the value to the grid locations?

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

カテゴリ

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