Question: MATLAB plotting. Please attach or write the code that generates the drawing on the plot Write a program that draw a pentagram of user-specified size,

MATLAB plotting. Please attach or write the code that generates the drawing on the plot

MATLAB plotting. Please attach or write the code that generates the drawing

Write a program that draw a pentagram of user-specified size, like the one shown in the example plot above. Specifications: The pentagram is of user-specified size. Note the five tips of the pentagram are located on a circle? Your program will prompt the user for the radius of that circle; your program should validate for positive numbers. Use geometry/trigonometry to calculate the x vector and y vector of the tips that are necessary to plot he pentagram. Do not use loops. Instead, use arrays and array math. Be creative with your plot, as long as it shows the lines, the tips, and the text with radius. Write a program that draw a pentagram of user-specified size, like the one shown in the example plot above. Specifications: The pentagram is of user-specified size. Note the five tips of the pentagram are located on a circle? Your program will prompt the user for the radius of that circle; your program should validate for positive numbers. Use geometry/trigonometry to calculate the x vector and y vector of the tips that are necessary to plot he pentagram. Do not use loops. Instead, use arrays and array math. Be creative with your plot, as long as it shows the lines, the tips, and the text with radius

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!