Borrar filtros
Borrar filtros

how to create a circular heat map

73 visualizaciones (últimos 30 días)
Razvan
Razvan el 27 de Sept. de 2012
Editada: Christian Günther el 16 de Mayo de 2022
Hi,
Thanks,
Razvan

Respuesta aceptada

Image Analyst
Image Analyst el 27 de Sept. de 2012
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 comentarios
Image Analyst
Image Analyst el 28 de Sept. de 2012
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 el 28 de Sept. de 2012
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.

Iniciar sesión para comentar.

Más respuestas (1)

Christian Günther
Christian Günther el 16 de Mayo de 2022
Editada: Christian Günther el 16 de Mayo de 2022
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)

Categorías

Más información sobre Contour Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by