Need to convert a 2d matrix A to a heatmap with interpolation

조회 수: 6 (최근 30일)
Alonso Canabal
Alonso Canabal 2022년 2월 28일
댓글: Alonso Canabal 2022년 3월 1일
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!

채택된 답변

David Hill
David Hill 2022년 2월 28일
fun = @(x) median(x(:));
A=nlfilter(A,[3 3],fun);%applies median filter in sliding 3x3 block

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by