Question: Using Matlab 3.4. Let x and y be column vectors describing the vertices of a polygon, given in order. Write functions polyperim(x,y) and polyarea (x,
Using Matlab

3.4. Let x and y be column vectors describing the vertices of a polygon, given in order. Write functions polyperim(x,y) and polyarea (x, y) that compute the perimeter and area of the polygon. For the area, use a formula based on Green's theorem: 2 ! yn+1 = yl. Test your functions on a square and an equilateral triangle
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
