Question: For circle, square and ellipse write a program in MATLAB to find the area, perimeter (or circumference) for a range of parametric values given by
For circle, square and ellipse write a program in MATLAB 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.
SQUARE Area: A = ? Perimeter P = 48 CIRCLE r = radites, d = diameter Diameter: d=2r Arca: A = Circumference C = 2 =#d RECTANGLE 1 = length, te = width Area: A=Ine Perimeter: P = 21+ 2 SECTOR OF CIRCLE r = radius, 8 = angle in radians Ara: A = 40 Are Length: * = er TRIANGLE b = base, h = height ArenA = 4th Perimeter P =a +bte ELLIPSE 1 semimajor axis b = semnimi nor axis Area: A = ab Circumferences C** ((a+b) - Via + 3)(8+307) Oyo, O EQUILATERAL TRIANGLE Height: 1- Ara: A = 42 ANNULUS r=inner radius R outer radius Average Radius: p f(r + R) Widthew=R-T Aron A R- or A - 2 side PARALLELOGRAM bb, hheight, Are Awe Perimeter P=2 +26 TRAPEZOID ab bush height: cd sides Area: A = (a + b) Perimeter P =a+b+c+d REGULAR POLYGON side length number of sides Circum radius: R ENE) Area = nicot() OF A - Rsin(2) SQUARE Area: A = ? Perimeter P = 48 CIRCLE r = radites, d = diameter Diameter: d=2r Arca: A = Circumference C = 2 =#d RECTANGLE 1 = length, te = width Area: A=Ine Perimeter: P = 21+ 2 SECTOR OF CIRCLE r = radius, 8 = angle in radians Ara: A = 40 Are Length: * = er TRIANGLE b = base, h = height ArenA = 4th Perimeter P =a +bte ELLIPSE 1 semimajor axis b = semnimi nor axis Area: A = ab Circumferences C** ((a+b) - Via + 3)(8+307) Oyo, O EQUILATERAL TRIANGLE Height: 1- Ara: A = 42 ANNULUS r=inner radius R outer radius Average Radius: p f(r + R) Widthew=R-T Aron A R- or A - 2 side PARALLELOGRAM bb, hheight, Are Awe Perimeter P=2 +26 TRAPEZOID ab bush height: cd sides Area: A = (a + b) Perimeter P =a+b+c+d REGULAR POLYGON side length number of sides Circum radius: R ENE) Area = nicot() OF A - Rsin(2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
