Rose diagram for discrete data

10 views (last 30 days)
Magda
Magda on 23 Mar 2015
Commented: Star Strider on 1 Jan 2018
Hi,
I need to draw a rose diagram, however, my data is grouped already. Is it possible to generate a rose diagram for discrete data? Is there any way I can do that? Here is the data I need to plot, for example for 0 degrees I have 56 observations for 10 degrees - 30 observations and so on. I'd appreciate any help. Thank you
  • 0 56
  • 10 30
  • 20 11
  • 30 11
  • 40 5
  • 50 3
  • 60 6
  • 70 8
  • 80 14
  • 90 16
  • 100 15
  • 110 7
  • 120 6
  • 130 9
  • 140 7
  • 150 10
  • 160 21
  • 170 39
  • 180 56
  • 190 30
  • 200 11
  • 210 11
  • 220 5
  • 230 3
  • 240 6
  • 250 8
  • 260 14
  • 270 16
  • 280 15
  • 290 7
  • 300 6
  • 310 9
  • 320 7
  • 330 10
  • 340 21
  • 350 39

Accepted Answer

Star Strider
Star Strider on 23 Mar 2015
The rose function isn’t cooperating. This is likely as close as you can get:
th_x = [0 56 % Original Data Matrix
10 30
20 11
30 11
40 5
50 3
... ];
xr = [repmat(th_x(:,2)', 10, 1); zeros(1,36)];
xr = [0 reshape(xr, 1, [])];
th = linspace(0, 359, length(xr));
figure(1)
polar(th*pi/180, xr)
producing this plot:
  6 Comments
Martin
Martin on 1 Jan 2018
Now it looks really good, thank you!
Star Strider
Star Strider on 1 Jan 2018
As always, my pleasure!
(A vote for my Answer would be appreciated!)

Sign in to comment.

More Answers (1)

Magda
Magda on 23 Mar 2015
thank you so much!!!!
  1 Comment
Star Strider
Star Strider on 23 Mar 2015
My pleasure!
That was an interesting challenge!

Sign in to comment.

Categories

Find more on 2-D and 3-D Plots in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!