Visualizing matrix data with 2d histogram

7 ビュー (過去 30 日間)
aposta95
aposta95 2022 年 6 月 14 日
コメント済み: aposta95 2022 年 6 月 14 日
Hi,
I have 1440 x 31 matrix 'A' where 1440 is a number of 1minute in one day (24hours x 60), and 31 is a total number of days in July.
Each element in a matrix is a number of vehicles passing specific region,
so A(1,1) is a number of vehicles passing that region in 07-01 00:00~00:01,
A(1,2) is a number of vehicles passing that region in 07-02 00:00~00:01,
and A(2,2) is a number of vehicles passing that region in 07-01 00:01~00:02.
I want to visualize that information with 2d histogram, and also want to visualize peak value with color.. but using histogram2 requires two vectors X,Y
How can I do that with matrix?
+ I want to view the histogram as a tile.
  4 件のコメント
KSSV
KSSV 2022 年 6 月 14 日
Ohh..If you want it as a tile read about pcolor
aposta95
aposta95 2022 年 6 月 14 日
Thanks I'll try it

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

回答 (2 件)

aposta95
aposta95 2022 年 6 月 14 日
I tried imagesc(A). Think it works well :)

Image Analyst
Image Analyst 2022 年 6 月 14 日
You might try surf or imshow
  2 件のコメント
Image Analyst
Image Analyst 2022 年 6 月 14 日
Be aware if you use pcolor that it doesn't display all the values as tiles. Watch me display a 4x4 array
m = rand(4,4);
pcolor(m);
Do you see the full m array of 4x4, or only 3x3?
aposta95
aposta95 2022 年 6 月 14 日
Oh, I want to see the full array.

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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by