Example 0.1 Use Matlab to sketch the conic section with equation

r = \frac{4}{1 + 0.5 cos θ} .