Question: In MATLAB An arbitrary triangle can be described by the coordinates of its three vertices: (x1,y1),(x2,y2),(x3,y3)(x1,y1),(x2,y2),(x3,y3), numbered in a counterclockwise direction. The area of the
In MATLAB
An arbitrary triangle can be described by the coordinates of its three vertices: (x1,y1),(x2,y2),(x3,y3)(x1,y1),(x2,y2),(x3,y3), numbered in a counterclockwise direction. The area of the triangle is given by the formula,
A=12x2y3x3y2x1y3+x3y1+x1y2x2y1A=12|x2y3x3y2x1y3+x3y1+x1y2x2y1|
Write a function getTriangleArea(vertices) that returns the area of a triangle whose vertices are specified by the argument vertices, which is a nested list of the vertex coordinates.

6. An arbitrary triangle can be described by the coordinates of its three vertices: (xl, yl), (x2, y2), (x3, y3), numbered in a counterclockwise direction. The area of the triangle is given by the formula, A= Write a function getTriangleArea(vertices) that returns the area of a triangle whose vertices are specified by the argument vertices, which is a nested list of the vertex coordinates
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
