Question: For circle, square and annulus write a program to find the area, perimeter (or circumference) for a range of parametric values given by the user
For circle, square and annulus write a program to find the area, perimeter (or circumference) for a range of parametric values given by the user and plot the corresponding shapes in the range given. User needs to identify lower and upper values of each parameter. The identified range for the parameters should be then divided into 10 monotonic steps inside your program. Accordingly, you need to calculate the values and plot the shapes corresponding to all 10 values in the range identified by the user. The program should plot the geometries in the first quadrant. Must be done using Matlab.

2D GEOMETRY FORMULAS http://pdf-ebooks-for-free.blogspot.in/ SQUAR CIRCLE T= radius, d = diameter a side Area: A Perimeter: P= 4s %3D Diameter: d= 2r Area: A = r Circumference: C= 2 = ad RECTANGLE SECTOR OF CIRCLE ! = length, w = width Area: A = lu Perimeter: P= 21+ 2ue r= radius, 6 = angle in radians Area: A= er Are Length: s= er %3D TRIANGLE b= base, h= height Area A = bh Perimeter: P=a +b+e ELLIPSE a= semimajor axis = semiminor axis Aren: A = rab Circumference: C= (3(a + b) - V(a + 30)(6+3a) EQUILATERAL TRIANGLE side Height: h= Area: A= ANNULUS r= inner radius, R= outer radius Average Radiusp=(r+R) e R-r PARALLELOGRAM b= base, h= height, a= side Area: A= bh Perimeter: P= 2a + 20 Area: A = r(R -) or A = 2r pw TRAPEZOID REGULAR POLYGON a.b= bases: h== height: e.d sides Area: A= (a + b)h Perimeter: Pa+b+c+d = side length, n= umber of sides Circumradius: R=sce() Area: A = ins cot(E) or A = fnR? sin(2)
Step by Step Solution
3.44 Rating (154 Votes )
There are 3 Steps involved in it
fprintfEnter shape number fprintf1 Circle fprintf2 Rectangle fprintf3 A... View full answer
Get step-by-step solutions from verified subject matter experts
