Plot a circular histogram for table Data

 Respuesta aceptada

I am not certain what the data are, how how the angles and deviations relate. Perhaps either polarplot or polarhistogram will do what you want.
Plotting a stairs.function as a polar plot is also an option —
ang = linspace(0, 2*pi, 50);
dev = rand(size(ang));
r = 1;
th = linspace(0, 2*pi, 180);
xc = r*cos(th);
yc = r*sin(th);
rx = xc(1:15:end);
ry = yc(1:15:end);
[xs,ys] = stairs(ang,dev);
xs = [xs; xs(1:2)];
ys = [ys; ys(1:2)];
[xp,yp] = pol2cart(xs,ys);
figure
plot(xp, yp)
hold on
plot(xc, yc, '-k')
zv = zeros(size(rx));
plot([zv;rx], [zv;ry], '--k')
hold off
axis('equal')
Ax = gca;
Ax.XColor = 'none';
Ax.YColor = 'none';
.

2 comentarios

Gavin Seddon
Gavin Seddon el 31 de Mayo de 2022
Thanks, would this be polarhistogram rot.TAB
The work was calculating the table.
Thanks StSt.
G.
Star Strider
Star Strider el 31 de Mayo de 2022
As always, my pleasure!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre 2-D and 3-D Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 31 de Mayo de 2022

Comentada:

el 31 de Mayo de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by