MATLAB: How to create a rose plot showing the distribution of the values

MATLABplotplotting

I want to create a rose plot showing the distribution of the values of R2
theta = linspace(0,2*pi,1000);
R2 = 2-2*sin(theta);
and the output must be identical with this:
I tried to do rose(R2) but it seems like rose function does not work, so, I tried polarhistogram function as follows:
polarhistogram(R2);
and I got this result:
I'm wondering if the problem is caused by using polarhistogram function instead of rose? or the way I'm plotting the distribution?
I would greatly appreciate your help.

Best Answer

Choose fewer elements for ‘theta’:
theta = linspace(0, 2*pi, 435);
Experiment to get the result you want.
Related Question