필터 지우기
필터 지우기

Create a heatmap from x and y values

조회 수: 43 (최근 30일)
Douwe Horsthuis
Douwe Horsthuis 2022년 8월 29일
편집: Douwe Horsthuis 2022년 8월 29일
Good morning,
I was hoping that someone could help me with this, I want to turn x and y coordinates into a heatmap:
I have a matrix edf_n, with edf_n.x and edf_n.y where these both have 530934 values that correspont to eye tracking data and where a participant was looking on the screen. I can plot this using a scatterplot: scatter(edf_n.x, edf_n.y) which looks like this:
However, what I want is to instead have a heatmap, instead.
Thank you very much!
Douwe

답변 (1개)

David Hill
David Hill 2022년 8월 29일
t=table(edf_n.x,edf_n.y);
heatmap(t,'Var1','Var2');
  댓글 수: 3
Image Analyst
Image Analyst 2022년 8월 29일
You keep foregetting to attach your data, leading me to think you've never read the posting guidelines.
If you have any more questions, then attach your data and code to read it in with the paperclip icon after you read this:
Douwe Horsthuis
Douwe Horsthuis 2022년 8월 29일
편집: Douwe Horsthuis 2022년 8월 29일
sorry about that, I had hopes that it would have worked without attaching the data. But I've attached it here. It my first time posting here, but for the rest I don't think I am missing/abusing any of the guidlines, or am I?

댓글을 달려면 로그인하십시오.

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by