Display Data From a Matrix or Table with Colour Scale
38 ビュー (過去 30 日間)
古いコメントを表示
Hi everyone, I am still relatively inexperienced with MATLAB so please be patient, hopefully someone can help as I'm a bit desperate.
I am trying to display data from a table in a an easy to view format with a colour scale,
I have created a joint occurrence table showing how often the two variables H and T occur using hiscounts2
hst = histcounts2(H, T, 0:0.5:10, 1:1:12)
this creates the following set of results;
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/161449/image.png)
I have 201600 data points and would like to display the table with a colour scale highlighting the most frequently occurring ranges.
I am trying to emulate something similar to this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/161452/image.png)
Does anyone have any ideas how I can achieve this?
0 件のコメント
回答 (2 件)
Alex Ryabov
2022 年 6 月 14 日
編集済み: Alex Ryabov
2022 年 6 月 14 日
Better use
heatmap(rand(5, 3)); colormap(jet)
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Data Distribution Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!