Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Matlab question, I dont know how even begin with this. Need detailed explanation and help. roblems 17. As shown in the figure, the area of

Matlab question, I dont know how even begin with this. Need detailed explanation and help. image text in transcribed
roblems 17. As shown in the figure, the area of a convex polygon can be calculated by adding the area of the triangles that the polygon can be divided into. Write a user-G defined MATLAB function that calculates the area of a convex n-sided polygon. For the function name and arguments, use A APolygon (Crd). The input argument Crd is a two-column matrix where each row contains the coordinates of a vertex (first column is the x coordi- nate and the second column is the y coordinate). The vertices are listed in the order that they are connected to form the polygon (i.e., coordinates of point A in the first row, point B in the second, and so on). The output argu- ment A is the area of the polygon. Write the code of APolygon such that i has a subfunction that calculates the area of a triangle for given vertice coordinates. Use APolygon to calculate the area of the polygon shown in the figure. The coordinates of the vertices are: A(1, 1), B(7, 2), C(10, 5), D(G, 11), E(6, 12), F(1, 12), G(-3, 8), H(4, 4)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Solaris 11.2 System Administration (oracle Press)

Authors: Harry Foxwell

1st Edition

007184421X, 9780071844215

Students also viewed these Databases questions