Cody

Problem 42699. Find the Area of a Polygon

Created by Shishir Patel in Community

Consider 2-D geometry and assume that the points are given in form of rows of a matrix. Find the area of polygon enclosed by the points.

Example:

A = [1 2;4 5; 6 7], represents points (1,2),(4,5) and (6,7)

Note :

  1. There are no repeated rows in matrix.
  2. There are at least 3 rows in matrix.
  3. Coordinates in matrix are arranged in counter-clockwise direction.

Solution Stats

70.15% Correct | 29.85% Incorrect
Last solution submitted on Apr 21, 2019

Problem Comments

Recent Solvers38

Suggested Problems

More from this Author1

Tags