필터 지우기
필터 지우기

how to create a circular heat map

조회 수: 73 (최근 30일)
Razvan
Razvan 2012년 9월 27일
편집: Christian Günther 2022년 5월 16일
Hi,
Thanks,
Razvan

채택된 답변

Image Analyst
Image Analyst 2012년 9월 27일
pcolor can do circular maps. But what does your angular dimension represent, and why is that representation any better than a rectangular representation (a rectangular image)?
  댓글 수: 7
Image Analyst
Image Analyst 2012년 9월 28일
If you have a 2D array of data, you can use cart2pol() to change it, but I haven't really played around with that so I'm no expert on that.
Razvan
Razvan 2012년 9월 28일
That only translates the coordinates from Cartesian to polar (or cylindrical for 3d data), but doesn't really bend the horizontal plot into a circular plot. Thanks anyway.

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

추가 답변 (1개)

Christian Günther
Christian Günther 2022년 5월 16일
편집: Christian Günther 2022년 5월 16일
Hello,
You can transform the Data to cartesian coordinates and use the hist3 function instead.
%polar(t,r,'+')
x = r.*cos(t);
y = r.*sin(t);
data = [x',y'];
hh3 = hist3(data, 'Nbins',[1 1]*25);
figure
image(flipud(hh3))
ax = gca;
xt = ax.XTick;
yt = ax.YTick;
ax.XTickLabel = xt*10;
set(ax, 'YTick',[0 yt], 'YTickLabel', [flip([0 yt])]*10)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by