Displays a numbered list of shapes as shown below uses the


Create a MATLAB function called drawShape() that performs the following:

a. Displays a numbered list of shapes as shown below

b. Uses the inbuilt MATLAB function input()to request the user to

i. select a shape from this list, and

ii. a letter to indicate the color to fill the shape (for example: `r' for red)

You should decide the dimensions of the shapes.

1. Right angled Triangle

2. Circle

3. Square

4. Pentagon

5. Hexagon

6. Octagon

7. Star

8. Rhombus

9. Trapezoid

Request for Solution File

Ask an Expert for Answer!!
Other Subject: Displays a numbered list of shapes as shown below uses the
Reference No:- TGS0602814

Expected delivery within 24 Hours