Question: Can someone please explain how to write this user defined function out in MATLAB. 5. (25 points). The function polar generate a 2D plot in

 Can someone please explain how to write this user defined function Can someone please explain how to write this user defined function out in MATLAB.

5. (25 points). The function polar generate a 2D plot in polar coordinates. For example, the following polar plot (left) describes the shell shape. Its equation in polar coordinates is r 1+acos(0), where a>=1. The shape of butterfly (right) may be represented in polar coordinates by the equation r cos (9) (bsin (0)+c), where b>1, c>1. If we consider 0 to be from 0 to 360, write a user-defined function program to draw the two graphs in the same figure window. Test your program several times by giving different valves to see how the shapes of the two graphs will be correspondingly changed (the following graphs are just one of these interesting shapes, when a-1, b-7, c 2) 90 3 90 3 120 60 120 60 150 30 150 30 180 0 180 210 330 210 330 240 300 240 270 270

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!