MATLAB
Any help is appreciated! Thank you!
a. Polar Plots Butterfly Curve rho = cos(50) + sin(3 theta) + 0.3 Flower Curve rho = sin(2 theta)cos(2 theta) polarplot() plots a line in polar coordinates, with theta indicating the angle in radians and rho indicating the radius value for each point. pol2cart()transforms corresponding elements of the polar coordinate arrays theta and rho to two- dimensional Cartesian, or xy, coordinates. Sketch the polar graphs on the interval [0, 2pi] for theta and using both functions. Use enough points so that your plot has a “smooth” appearance. Label the horizontal and vertical axes appropriately and provide a title. b. 3D Line Plot an hourglass shape using plot3() as shown in the figure.