How to make a heatmap with density of points
124 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ángel González
il 22 Ago 2018
Commentato: Walter Roberson
il 14 Set 2020
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 Commenti
Risposta accettata
Più risposte (1)
Walter Roberson
il 22 Ago 2018
2 Commenti
Michael King
il 14 Set 2020
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
il 14 Set 2020
If you use Malcolm's contribution, then his dataDensity() function calculates those numbers.
Vedere anche
Categorie
Scopri di più su Data Distribution Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!