I have a task for school and we need to plot a polar function with MATLAB. The function is $r = 1-2\cos(6\theta)$.
I did this and I'm getting exactly the same as on Wolfram Alpha: https://www.wolframalpha.com/input/?i=polar+plot+r%3D1-2\cos(6theta)
I've used for $\theta$ a value between $0$ and $2\pi$. Now the question explitictly says we need to take into account the period and the domain of the function and we can use the logic function $r>0$ for this. But I didn't do this because I just took a value between $0$ and $2\pi$ for $\theta$. Am I doing something wrong here?
Thanks.
Matlab code:
Output: a nice flower!