필터 지우기
필터 지우기

How we can make a HeatMap like this?

조회 수: 1 (최근 30일)
Ali N
Ali N 2019년 11월 7일
댓글: Ali N 2019년 11월 7일
Hello all
How we can make a HeatMap like this from the data that I attached?
  댓글 수: 1
darova
darova 2019년 11월 7일
You have to try to use griddata

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

채택된 답변

Stijn Haenen
Stijn Haenen 2019년 11월 7일
편집: Stijn Haenen 2019년 11월 7일
Hi,
Maybe not the best way but it works:
velocityrange=-80:5:80;
momentrange=-250:10:250;
for i=1:numel(momentrange)
for j=1:numel(velocityrange)
b=find(abs(moment-momentrange(i))<2.5);
c=find(abs(velocity-velocityrange(j))<5);
count=0;
for k=1:numel(b)
if find(b(k)==c)
count=count+1;
end
end
heatmap(i,j)=count;
end
end
imagesc(heatmap)
  댓글 수: 1
Ali N
Ali N 2019년 11월 7일
Thanks Stijn
But its not working on the data that i uploaded.

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

추가 답변 (0개)

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by