Question: Challenge Problems 9.19 (a) Create a function called polygon that draws a polygon in a polar plot. Your function should have a single input parameter--the
Challenge Problems 9.19 (a) Create a function called polygon that draws a polygon in a polar plot. Your function should have a single input parameter--the num sides. Use a for loop to create a figure with four subplots, showing a triangle in the first subplot, a square in the second subplot, a pentagon in the third subplot, and ayhexagon in the fourth subplot. You should use the function you createl in part (a) to draw each polygon. Use the index parameter from the for loop to specify the subplot in which each poly- gon is drawn, and in an expression to determine the number of sides used as input to the polygon function. (b)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
