MATLAB: R=e^(cos*t​heta)-2*co​s(4*theta) graphic on MATLAB

equationexpMATLABtheta

I want to do the graphic of this equation in matlab but i can't make it work, can someone help me please? this is my code so far:
theta=linspace(-pi,pi,100);
r = exp(theta)-2*cos(4*theta);
polar(theta,r);

Best Answer

I got the graph and it is the same in Wolfram alpha there is nothing wrong with it.
%EDITED after the remark by JOHN D'ERRICO
Related Question