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

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