How to make a heatmap with density of points
조회 수: 64 (최근 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!




