Changing bin positions in Rose plot

1 view (last 30 days)
Josh
Josh on 11 Sep 2013
Hi,
I am using a rose plot to bin phase data from various signals. However, the starting bin starts at 0 degrees by default. Changing the number of bins does not change start point of this bin.
I would like to center the first bin around zero degrees, since this is more intuitive for my purposes. Is there a way to do this?
Thank you.

Answers (1)

the cyclist
the cyclist on 11 Sep 2013
As specified pretty clearly in the documentation, use the second argument of the rose() function
% Made-up data
theta = 2*pi*rand(1000,1);
% Define the centers of your bins
range = (0:30:330)*pi/180;
% Draw figure
figure
rose(theta,range)

Categories

Find more on Polar 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!