Question: Please help with both Problems in MATLAB. Problem 3: Area of a quadrilateral. A quadrilateral is a 2-dimensional figure with 4 sides that may or
Please help with both Problems in MATLAB.


Problem 3: Area of a quadrilateral. A quadrilateral is a 2-dimensional figure with 4 sides that may or may not be parallel You will use 2 different methods to determine the area of a quadrilateral. Create two vectors using the data given below (note the last value of each array is the same as the first to allow the figure to close if you were to plot the quadrilateral). 1.8000 2.7000 3.2000 -0.5000 -1.8000 2.0000 1.5000 2.0000 3.7500 2.0000 For the first method of calculating the area of the quadrilateral you should use the formula Area- (note that this problem does not use the fifth element of each array). Do not create separate variables forxl, yl, x2, y2 etc. but use the specified elements of each array you created earlier For the second method, you will use Hero's formula for finding the area of a triangle where a, Areas(s -a)(s- b)(s- c) b, and c are the sides of a triangle and s is the semiperimeter (one half of the perimeter) of the triangle. The plot below (Figure 1) shows a green line that connects the first point and the third point dividing your quadrilateral into two triangles. Figure 1 CMPSC 201 - Spring 2018 Project 5 Using the formula to determine the distance between two points and Hero's formula find the area of each triangle then add the two areas together
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
