Question: Please write the matlab code for this problem correctly thank you Problem 2: The easiest way to draw a star in MATLAB is to use

Please write the matlab code for this problem correctly thank you  Please write the matlab code for this problem correctly thank you
Problem 2: The easiest way to draw a star in MATLAB is

Problem 2: The easiest way to draw a star in MATLAB is to use polar coordinates. You simply need to identify points on the circumference of a circle and draw lines between those points. For example, to draw a five-pointed star, start at the top of the circle ( =-, r = 1) and work counterclockwise as shown in Figure 1. Prompt the user to specify either a five-pointed or a six-pointed star, using a menu. Then create the star in a MATLAB figure window. Note that a six-pointed star is made of three triangles and requires a strategy different from that used to create a five-pointed star. Your six-pointed star should look like the one in figure 2

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!