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
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
Get step-by-step solutions from verified subject matter experts
