How to make a heatmap with density of points
67 次查看(过去 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!