Matlab Create a function called polygon that draws a polygon in a polar plot. Your function should have a single input parameter-the number of 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 a hexagon in the fourth subplot. You should use the function you created in part (a) to draw each polygon. Use the index parameter from the for loop to specify the subplot in which each polygon is drawn, and in an expression to determine the number of sides used as input to the polygon function. Solution % function for creating polygon save this with function name i.e polyg.m function polyg(sides) sides=input(\'enter sides\'); degrees=2*pi/sides theta=0:degrees:2*pi radius=ones(1,numel(theta)) polar(theta,radius) % take another script file to subplot and save this file ith any name subplot(2,2,1), polyg(\'3\'); subplot(2,2,2), polyg(\'4\'); subplot(2,2,3), polyg(\'5\'); subplot(2,2,4), polyg(\'6\'); .