Need to convert a 2d matrix A to a heatmap with interpolation
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Alonso Canabal
am 28 Feb. 2022
Kommentiert: Alonso Canabal
am 1 Mär. 2022
Good afternoon,
I have a 2D matrix "A" that represents a 120x120 cm and I need to generate a nice heatmap that represents the number of events that happen around each coordinate. My data points are 8000. I keep obtaining very pixelated images 

While I need something like this

I was told that with Interpolation I could have that nice continuity effect, but I only obtain the exact same image but at higher resolution. If you could help me, I would really appreciate it.
Thank you!
0 Kommentare
Akzeptierte Antwort
David Hill
am 28 Feb. 2022
fun = @(x) median(x(:));
A=nlfilter(A,[3 3],fun);%applies median filter in sliding 3x3 block
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Distribution Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!