How to make a heatmap with density of points
110 ビュー (過去 30 日間)
古いコメントを表示
Hello!
I have two vectors ( x_vector and y_vector) which correspond with the different points obtained on my simulation. The point is that I want to make a kind of heatmap with the density of the repetition of those points. I have tried with different functions such as imagesc or histogram2, but I didn't get to achieve what I wanted.
Thank you.
0 件のコメント
採用された回答
その他の回答 (1 件)
Walter Roberson
2018 年 8 月 22 日
2 件のコメント
Michael King
2020 年 9 月 14 日
Great answer to this question! I'd like to ask a follow up question. Can a number be extracted to indicate the extent of density in a data set? i.e. how focused is a heatmap?
Walter Roberson
2020 年 9 月 14 日
If you use Malcolm's contribution, then his dataDensity() function calculates those numbers.
参考
カテゴリ
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!